mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 05:18:18 +01:00
071d7cb788
c35cc97d38
[DX] Add phpVersion() method to RectorConfig + make use of new config class in test configs (#2065)
15 lines
361 B
PHP
15 lines
361 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
use Rector\Symfony\Set\SymfonySetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->import(SymfonySetList::SYMFONY_52);
|
|
|
|
$rectorConfig->phpVersion(PhpVersion::PHP_80);
|
|
$rectorConfig->paths([__DIR__ . '/src']);
|
|
};
|