RepositoryArrayAccessToMethodCallRector

Change array access on a config or cache repository to the matching method call, as the contracts do not extend ArrayAccess

-$config['app.name'];
-$config['app.name'] = 'Foo';
-isset($config['app.name']);
-unset($config['app.name']);
+$config->get('app.name');
+$config->set('app.name', 'Foo');
+$config->has('app.name');
+$config->set('app.name');

Configure your rector.php:

<?php

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

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

Other rules in the ArrayAccess to Method Call set