mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
c35cc97d38
[DX] Add phpVersion() method to RectorConfig + make use of new config class in test configs (#2065)
16 lines
598 B
PHP
16 lines
598 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220412;
|
|
|
|
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->import(\Rector\Set\ValueObject\SetList::PHP_55);
|
|
$rectorConfig->import(\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_54);
|
|
// parameter must be defined after import, to override impored param version
|
|
$rectorConfig->phpVersion(\Rector\Core\ValueObject\PhpVersion::PHP_55);
|
|
};
|