Change hebrevc($str) to nl2br(hebrev($str))
-hebrevc($str);
+nl2br(hebrev($str));
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\FuncCall\HebrevcToNl2brHebrevRector;
return RectorConfig::configure()
->withRules([
HebrevcToNl2brHebrevRector::class,
]);