Makes needles explicit strings
$needle = 5;
-$fivePosition = strpos('725', $needle);
+$fivePosition = strpos('725', (string) $needle);
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
return RectorConfig::configure()
->withRules([
StringifyStrNeedlesRector::class,
]);