MbStrrposEncodingArgumentPositionRector

Change mb_strrpos() encoding argument position

-mb_strrpos($text, "abc", "UTF-8");
+mb_strrpos($text, "abc", 0, "UTF-8");

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php74\Rector\FuncCall\MbStrrposEncodingArgumentPositionRector;

return RectorConfig::configure()
    ->withRules([
        MbStrrposEncodingArgumentPositionRector::class,
    ]);
SETS:  PHP 7.4