Find a Rector rule

Find the best Rector rule to solve your problem. Searching through 1074 rules.

Found 2 rules, grouped by set: Clear

ArrayAccess to Method Call 2 matches

Change array access on the container to the matching method call, as the contract does not extend ArrayAccess

-$container['foo'];
-$container['foo'] = 'Foo';
-isset($container['foo']);
+$container->make('foo');
+$container->bind('foo', 'Foo');
+$container->bound('foo');

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');