ParseStrWithResultArgumentRector

Use $result argument in parse_str() function

-parse_str($this->query);
-$data = get_defined_vars();
+parse_str($this->query, $result);
+$data = $result;

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php72\Rector\FuncCall\ParseStrWithResultArgumentRector;

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