StrictInArrayRector

Set in_array strict to true when defined on similar type

 class BothStrings
 {
     public function run(string $value)
     {
-        return in_array($value, ['one', 'two', 'three']);
+        return in_array($value, ['one', 'two', 'three'], true);
     }
 }

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\FuncCall\StrictInArrayRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        StrictInArrayRector::class,
    ]);
SETS:  Coding Style