SimplifyArraySearchRector

Simplify array_search to in_array

-array_search("searching", $array) !== false;
+in_array("searching", $array);

Configure your rector.php:

<?php

use Rector\CodeQuality\Rector\Identical\SimplifyArraySearchRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        SimplifyArraySearchRector::class,
    ]);
SETS:  Code Quality