rector/config/set/level/up-to-php72.php
Tomas Votruba ede8f558b7 Updated Rector to commit f022c20446
f022c20446 [DX] Remove GenericClassMethodParamRector, rather PHPStorm one-time refactoring job (#1830)
2022-02-18 00:42:23 +00:00

18 lines
873 B
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix20220218;
use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$containerConfigurator->import(\Rector\Set\ValueObject\SetList::PHP_72);
$containerConfigurator->import(\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_71);
// parameter must be defined after import, to override impored param version
$parameters = $containerConfigurator->parameters();
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_72);
};