ChrArgModuloRector

Wrap chr() argument with % 256 to avoid deprecated out-of-range integers

-echo chr(300);
+echo chr(300 % 256);

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php85\Rector\FuncCall\ChrArgModuloRector;

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