Updated Rector to commit 985d5ea5109e1282f35370006ad7ac26df7789de

985d5ea510 cs
This commit is contained in:
Tomas Votruba 2024-01-17 15:08:46 +00:00
parent 566e0f2b70
commit ee75e1d6c7
48 changed files with 113 additions and 461 deletions

View File

@ -1802,12 +1802,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "284250309f1cee702b9d93f41a6a8cb17d75d84c"
"reference": "f091938e0b34c64acab524c2acff911cea769b57"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/284250309f1cee702b9d93f41a6a8cb17d75d84c",
"reference": "284250309f1cee702b9d93f41a6a8cb17d75d84c",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/f091938e0b34c64acab524c2acff911cea769b57",
"reference": "f091938e0b34c64acab524c2acff911cea769b57",
"shasum": ""
},
"require": {
@ -1830,7 +1830,7 @@
"tomasvotruba\/class-leak": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2024-01-17T11:46:44+00:00",
"time": "2024-01-17T15:05:41+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -1866,12 +1866,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "6d139d7dfc5b2d479aa7ad74aa83428666ee7003"
"reference": "9da9cdb203cb0138185d7b81a079a1e551597524"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/6d139d7dfc5b2d479aa7ad74aa83428666ee7003",
"reference": "6d139d7dfc5b2d479aa7ad74aa83428666ee7003",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/9da9cdb203cb0138185d7b81a079a1e551597524",
"reference": "9da9cdb203cb0138185d7b81a079a1e551597524",
"shasum": ""
},
"require": {
@ -1892,7 +1892,7 @@
"symfony\/security-core": "^6.2",
"symfony\/security-http": "^6.1",
"symfony\/validator": "^6.2",
"symplify\/easy-coding-standard": "^12.0",
"symplify\/easy-coding-standard": "^12.1",
"symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^12.0",
"symplify\/rule-doc-generator": "^12.0",
@ -1900,7 +1900,7 @@
"tomasvotruba\/class-leak": "^0.2.6",
"tracy\/tracy": "^2.10"
},
"time": "2024-01-17T00:22:50+00:00",
"time": "2024-01-17T15:01:48+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main b419ce7'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 51ff6e7'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 2842503'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 6d139d7'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main b419ce7'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 51ff6e7'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main f091938'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 9da9cdb'));
private function __construct()
{
}

View File

@ -0,0 +1,11 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig) : void {
// this set was deprecated, due to overuse, conflicts and performance problems
// instead use one Symfony set at a time, and keep only up to latest Symfony version
// @see https://getrector.com/blog/5-common-mistakes-in-rector-config-and-how-to-avoid-them
};

View File

@ -1,12 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->import(PHPUnitSetList::PHPUNIT_100);
$rectorConfig->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_90);
};

View File

@ -1,10 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->import(PHPUnitSetList::PHPUNIT_50);
};

View File

@ -1,12 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->import(PHPUnitSetList::PHPUNIT_60);
$rectorConfig->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_50);
};

View File

@ -1,12 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->import(PHPUnitSetList::PHPUNIT_70);
$rectorConfig->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_60);
};

View File

@ -1,12 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->import(PHPUnitSetList::PHPUNIT_80);
$rectorConfig->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_70);
};

View File

@ -1,12 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->import(PHPUnitSetList::PHPUNIT_90);
$rectorConfig->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_80);
};

View File

@ -1,9 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
/** @deprecated Use PHPUnitSetList::PHPUNIT_100 directly */
return static function (RectorConfig $rectorConfig) : void {
};

View File

@ -6,36 +6,38 @@ namespace Rector\PHPUnit\Set;
use Rector\Set\Contract\SetListInterface;
/**
* @api
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
*/
final class PHPUnitLevelSetList implements SetListInterface
{
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
* @var string
*/
public const UP_TO_PHPUNIT_50 = __DIR__ . '/../../config/sets/level/up-to-phpunit-50.php';
public const UP_TO_PHPUNIT_50 = __DIR__ . '/../../config/sets/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
* @var string
*/
public const UP_TO_PHPUNIT_60 = __DIR__ . '/../../config/sets/level/up-to-phpunit-60.php';
public const UP_TO_PHPUNIT_60 = __DIR__ . '/../../config/sets/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
* @var string
*/
public const UP_TO_PHPUNIT_70 = __DIR__ . '/../../config/sets/level/up-to-phpunit-70.php';
public const UP_TO_PHPUNIT_70 = __DIR__ . '/../../config/sets/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
* @var string
*/
public const UP_TO_PHPUNIT_80 = __DIR__ . '/../../config/sets/level/up-to-phpunit-80.php';
public const UP_TO_PHPUNIT_80 = __DIR__ . '/../../config/sets/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
* @var string
*/
public const UP_TO_PHPUNIT_90 = __DIR__ . '/../../config/sets/level/up-to-phpunit-90.php';
/**
* @var string
* @deprecated Use PHPUnitSetList::PHPUNIT_100 directly
*/
public const UP_TO_PHPUNIT_91 = __DIR__ . '/../../config/sets/level/up-to-phpunit-91.php';
public const UP_TO_PHPUNIT_90 = __DIR__ . '/../../config/sets/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest PHPUnit set
* @var string
*/
public const UP_TO_PHPUNIT_100 = __DIR__ . '/../../config/sets/level/up-to-phpunit-100.php';
public const UP_TO_PHPUNIT_100 = __DIR__ . '/../../config/sets/level/deprecated-level-set.php';
}

View File

@ -21,7 +21,7 @@
"symfony\/security-core": "^6.2",
"symfony\/security-http": "^6.1",
"symfony\/validator": "^6.2",
"symplify\/easy-coding-standard": "^12.0",
"symplify\/easy-coding-standard": "^12.1",
"symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^12.0",
"symplify\/rule-doc-generator": "^12.0",

View File

@ -0,0 +1,11 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig) : void {
// this set was deprecated, due to overuse, conflicts and performance problems
// instead use one Symfony set at a time, and keep only up to latest Symfony version
// @see https://getrector.com/blog/5-common-mistakes-in-rector-config-and-how-to-avoid-them
};

View File

@ -1,10 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_25]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_26, SymfonyLevelSetList::UP_TO_SYMFONY_25]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_27, SymfonyLevelSetList::UP_TO_SYMFONY_26]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_28, SymfonyLevelSetList::UP_TO_SYMFONY_27]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_30, SymfonyLevelSetList::UP_TO_SYMFONY_28]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_31, SymfonyLevelSetList::UP_TO_SYMFONY_30]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_32, SymfonyLevelSetList::UP_TO_SYMFONY_31]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_33, SymfonyLevelSetList::UP_TO_SYMFONY_32]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_34, SymfonyLevelSetList::UP_TO_SYMFONY_33]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_40, SymfonyLevelSetList::UP_TO_SYMFONY_34]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_41, SymfonyLevelSetList::UP_TO_SYMFONY_40]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_42, SymfonyLevelSetList::UP_TO_SYMFONY_41]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_43, SymfonyLevelSetList::UP_TO_SYMFONY_42]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_44, SymfonyLevelSetList::UP_TO_SYMFONY_43]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_50, SymfonySetList::SYMFONY_50_TYPES, SymfonyLevelSetList::UP_TO_SYMFONY_44]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_51, SymfonyLevelSetList::UP_TO_SYMFONY_50]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_52, SymfonySetList::SYMFONY_52_VALIDATOR_ATTRIBUTES, SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES, SymfonyLevelSetList::UP_TO_SYMFONY_51]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_53, SymfonyLevelSetList::UP_TO_SYMFONY_52]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_54, SymfonyLevelSetList::UP_TO_SYMFONY_53]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_60, SymfonyLevelSetList::UP_TO_SYMFONY_54]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_61, SymfonyLevelSetList::UP_TO_SYMFONY_60]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_62, SymfonyLevelSetList::UP_TO_SYMFONY_61]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_63, SymfonyLevelSetList::UP_TO_SYMFONY_62]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([SymfonySetList::SYMFONY_64, SymfonyLevelSetList::UP_TO_SYMFONY_63]);
};

View File

@ -1,10 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\TwigSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([TwigSetList::TWIG_112]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\TwigLevelSetList;
use Rector\Symfony\Set\TwigSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([TwigSetList::TWIG_127, TwigLevelSetList::UP_TO_TWIG_112]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\TwigLevelSetList;
use Rector\Symfony\Set\TwigSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([TwigSetList::TWIG_134, TwigLevelSetList::UP_TO_TWIG_127]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\TwigLevelSetList;
use Rector\Symfony\Set\TwigSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([TwigSetList::TWIG_140, TwigLevelSetList::UP_TO_TWIG_134]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\TwigLevelSetList;
use Rector\Symfony\Set\TwigSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([TwigSetList::TWIG_20, TwigLevelSetList::UP_TO_TWIG_140]);
};

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202401;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\TwigLevelSetList;
use Rector\Symfony\Set\TwigSetList;
return static function (RectorConfig $rectorConfig) : void {
$rectorConfig->sets([TwigSetList::TWIG_240, TwigLevelSetList::UP_TO_TWIG_20]);
};

View File

@ -162,7 +162,7 @@ CODE_SAMPLE
} else {
$methodCallName = StringUtils::underscoreToCamelCase($key);
}
if (\in_array($key, [SecurityConfigKey::ACCESS_DECISION_MANAGER, SecurityConfigKey::ENTITY])) {
if (\in_array($key, [SecurityConfigKey::ACCESS_DECISION_MANAGER, SecurityConfigKey::ENTITY], \true)) {
$mainMethodName = StringUtils::underscoreToCamelCase($key);
$accessDecisionManagerMethodCalls = $this->securityAccessDecisionManagerConfigArrayHandler->handle($configurationArray, $configVariable, $mainMethodName);
if ($accessDecisionManagerMethodCalls !== []) {

View File

@ -5,104 +5,129 @@ namespace Rector\Symfony\Set;
use Rector\Set\Contract\SetListInterface;
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @api
*/
final class SymfonyLevelSetList implements SetListInterface
{
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_25 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-25.php';
public const UP_TO_SYMFONY_25 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_26 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-26.php';
public const UP_TO_SYMFONY_26 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_27 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-27.php';
public const UP_TO_SYMFONY_27 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_28 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-28.php';
public const UP_TO_SYMFONY_28 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_30 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-30.php';
public const UP_TO_SYMFONY_30 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_31 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-31.php';
public const UP_TO_SYMFONY_31 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_32 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-32.php';
public const UP_TO_SYMFONY_32 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_33 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-33.php';
public const UP_TO_SYMFONY_33 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_34 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-34.php';
public const UP_TO_SYMFONY_34 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_40 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-40.php';
public const UP_TO_SYMFONY_40 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_41 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-41.php';
public const UP_TO_SYMFONY_41 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_42 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-42.php';
public const UP_TO_SYMFONY_42 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_43 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-43.php';
public const UP_TO_SYMFONY_43 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_44 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-44.php';
public const UP_TO_SYMFONY_44 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_50 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-50.php';
public const UP_TO_SYMFONY_50 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_51 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-51.php';
public const UP_TO_SYMFONY_51 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_52 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-52.php';
public const UP_TO_SYMFONY_52 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_53 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-53.php';
public const UP_TO_SYMFONY_53 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_54 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-54.php';
public const UP_TO_SYMFONY_54 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_60 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-60.php';
public const UP_TO_SYMFONY_60 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_61 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-61.php';
public const UP_TO_SYMFONY_61 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_62 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-62.php';
public const UP_TO_SYMFONY_62 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_63 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-63.php';
public const UP_TO_SYMFONY_63 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Symfony set
* @var string
*/
public const UP_TO_SYMFONY_64 = __DIR__ . '/../../config/sets/symfony/level/up-to-symfony-64.php';
public const UP_TO_SYMFONY_64 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
}

View File

@ -5,32 +5,39 @@ namespace Rector\Symfony\Set;
use Rector\Set\Contract\SetListInterface;
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @api
*/
final class TwigLevelSetList implements SetListInterface
{
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @var string
*/
public const UP_TO_TWIG_112 = __DIR__ . '/../../config/sets/twig/level/up-to-twig-112.php';
public const UP_TO_TWIG_112 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @var string
*/
public const UP_TO_TWIG_127 = __DIR__ . '/../../config/sets/twig/level/up-to-twig-127.php';
public const UP_TO_TWIG_127 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @var string
*/
public const UP_TO_TWIG_134 = __DIR__ . '/../../config/sets/twig/level/up-to-twig-134.php';
public const UP_TO_TWIG_134 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @var string
*/
public const UP_TO_TWIG_140 = __DIR__ . '/../../config/sets/twig/level/up-to-twig-140.php';
public const UP_TO_TWIG_140 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @var string
*/
public const UP_TO_TWIG_20 = __DIR__ . '/../../config/sets/twig/level/up-to-twig-20.php';
public const UP_TO_TWIG_20 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
/**
* @deprecated Instead of too bloated and overriding level sets, use only latest Twig set
* @var string
*/
public const UP_TO_TWIG_240 = __DIR__ . '/../../config/sets/twig/level/up-to-twig-240.php';
public const UP_TO_TWIG_240 = __DIR__ . '/../../config/sets/symfony/level/deprecated-level-set.php';
}

View File

@ -4,6 +4,9 @@ declare (strict_types=1);
namespace Rector\Symfony\Set;
use Rector\Set\Contract\SetListInterface;
/**
* @api
*/
final class TwigSetList implements SetListInterface
{
/**