Removes unneeded array_values() in in_array() call
-in_array("key", array_values($array), true);
+in_array("key", $array, true);
Configure your rector.php
:
<?php
use Rector\CodeQuality\Rector\FuncCall\SimplifyInArrayValuesRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
SimplifyInArrayValuesRector::class,
]);