StrContainsRector

Replace strpos() !== false and strstr() with str_contains()

 class SomeClass
 {
     public function run()
     {
-        return strpos('abc', 'a') !== false;
+        return str_contains('abc', 'a');
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php80\Rector\NotIdentical\StrContainsRector;

return RectorConfig::configure()
    ->withRules([
        StrContainsRector::class,
    ]);
SETS:  PHP 8.0 Polyfills