Add escape argument on CSV function calls
-str_getcsv($string, separator: ',', enclosure: '"');
+str_getcsv($string, separator: ',', enclosure: '"', escape: '\\');
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php84\Rector\FuncCall\AddEscapeArgumentRector;
return RectorConfig::configure()
->withRules([
AddEscapeArgumentRector::class,
]);