Long array to short array
class SomeClass
{
public function run()
{
- return array();
+ return [];
}
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
return RectorConfig::configure()
->withRules([
LongArrayToShortArrayRector::class,
]);