mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-29 06:03:30 +00:00
3da22b0231
[Php81] Skip ArrayDimFetch from ArrayObject in Assign var on ReadOnlyPropertyRector (#2363)
15 lines
572 B
PHP
15 lines
572 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220526;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Rector\Set\ValueObject\SetList;
|
|
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->sets([\Rector\Set\ValueObject\SetList::PHP_55, \Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_54]);
|
|
// parameter must be defined after import, to override imported param version
|
|
$rectorConfig->phpVersion(\Rector\Core\ValueObject\PhpVersion::PHP_55);
|
|
};
|