EnvVariableToEnvHelperRector

Change env variable to env static call

-$_ENV['APP_NAME'];
+\Illuminate\Support\Env::get('APP_NAME');

Configure your rector.php:

<?php

use RectorLaravel\Rector\ArrayDimFetch\EnvVariableToEnvHelperRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        EnvVariableToEnvHelperRector::class,
    ]);