rector/config/set/level/up-to-php71.php
Tomas Votruba d66e622e1b Updated Rector to commit dda87fc6d2b8632967f4907bab94918c18822807
dda87fc6d2 [VendorLocker] Allow both in vendor for child and parent on ParentClassMethodTypeOverrideGuard (#1399)
2021-12-06 06:57:16 +00:00

18 lines
873 B
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix20211206;
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_71);
$containerConfigurator->import(\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_70);
// 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_71);
};