Makes array_search search for identical elements
-array_search($value, $items);
+array_search($value, $items, true);
Configure your rector.php
:
<?php
use Rector\CodingStyle\Rector\FuncCall\StrictArraySearchRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
StrictArraySearchRector::class,
]);