FilterVarToAddSlashesRector

Change filter_var() with slash escaping to addslashes()

 $var= "Satya's here!";
-filter_var($var, FILTER_SANITIZE_MAGIC_QUOTES);
+addslashes($var);

Configure your rector.php:

<?php

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

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