diff --git a/config/sets/symfony/annotations-to-attributes.php b/config/sets/symfony/annotations-to-attributes.php index c32a9d15e..10cb3b11a 100644 --- a/config/sets/symfony/annotations-to-attributes.php +++ b/config/sets/symfony/annotations-to-attributes.php @@ -5,11 +5,10 @@ use Rector\Config\RectorConfig; use Rector\Php80\Rector\Class_\AnnotationToAttributeRector; use Rector\Php80\ValueObject\AnnotationToAttribute; -use Rector\Symfony\Set\SymfonySetList; // @see https://symfony.com/blog/new-in-symfony-5-2-constraints-as-php-attributes return static function (RectorConfig $rectorConfig): void { - $rectorConfig->sets([SymfonySetList::SYMFONY_52_VALIDATOR_ATTRIBUTES]); + $rectorConfig->sets([__DIR__ . '/symfony5/symfony52-validator-attributes.php']); $rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [ // @see https://symfony.com/blog/new-in-symfony-5-2-php-8-attributes diff --git a/config/sets/symfony/composer-based.php b/config/sets/symfony/composer-based.php index 5facc4101..8b09b77be 100644 --- a/config/sets/symfony/composer-based.php +++ b/config/sets/symfony/composer-based.php @@ -348,6 +348,17 @@ $privatesAccessor = new PrivatesAccessor(); $privatesAccessor->setPrivateProperty($scalarArrayObjectUnionType, 'types', $scalarArrayObjectUnionedTypes); + // symfony/form 2.7 + $rectorConfig->ruleWithConfigurationComposerVersionBound(RenameMethodRector::class, [ + // @see https://symfony.com/blog/new-in-symfony-2-7-form-and-validator-updates#deprecated-setdefaultoptions-in-favor-of-configureoptions + new MethodCallRename('Symfony\Component\Form\AbstractType', 'setDefaultOptions', 'configureOptions'), + ], 'symfony/form', '>=2.7'); + + // symfony/options-resolver 2.7 + $rectorConfig->ruleWithConfigurationComposerVersionBound(RenameClassRector::class, [ + 'Symfony\Component\OptionsResolver\OptionsResolverInterface' => 'Symfony\Component\OptionsResolver\OptionsResolver', + ], 'symfony/options-resolver', '>=2.7'); + // symfony/bridge-swift-mailer 3.0 $rectorConfig->ruleWithConfigurationComposerVersionBound(RenameClassRector::class, [ // swift mailer diff --git a/config/sets/symfony/symfony25.php b/config/sets/symfony/symfony25.php deleted file mode 100644 index e2b36aa28..000000000 --- a/config/sets/symfony/symfony25.php +++ /dev/null @@ -1,16 +0,0 @@ -rules([ - AddViolationToBuildViolationRector::class, - MaxLengthSymfonyFormOptionToAttrRector::class, - GetRequestRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony26.php b/config/sets/symfony/symfony26.php deleted file mode 100644 index 6fdf52960..000000000 --- a/config/sets/symfony/symfony26.php +++ /dev/null @@ -1,10 +0,0 @@ -rule(RedirectToRouteRector::class); -}; diff --git a/config/sets/symfony/symfony27.php b/config/sets/symfony/symfony27.php deleted file mode 100644 index c50c5ccd9..000000000 --- a/config/sets/symfony/symfony27.php +++ /dev/null @@ -1,22 +0,0 @@ -rule(ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector::class); - - // @see https://symfony.com/blog/new-in-symfony-2-7-form-and-validator-updates#deprecated-setdefaultoptions-in-favor-of-configureoptions - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Form\AbstractType', 'setDefaultOptions', 'configureOptions'), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\OptionsResolver\OptionsResolverInterface' => 'Symfony\Component\OptionsResolver\OptionsResolver', - ]); -}; diff --git a/config/sets/symfony/symfony28.php b/config/sets/symfony/symfony28.php index eece19f97..2d13b0ba4 100644 --- a/config/sets/symfony/symfony28.php +++ b/config/sets/symfony/symfony28.php @@ -5,12 +5,8 @@ use Rector\Arguments\Rector\ClassMethod\ReplaceArgumentDefaultValueRector; use Rector\Arguments\ValueObject\ReplaceArgumentDefaultValue; use Rector\Config\RectorConfig; -use Rector\Symfony\Symfony28\Rector\MethodCall\GetToConstructorInjectionRector; -use Rector\Symfony\Symfony28\Rector\StaticCall\ParseFileRector; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->rules([ParseFileRector::class, GetToConstructorInjectionRector::class]); - $rectorConfig->ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ // @see https://github.com/symfony/symfony/commit/912fc4de8fd6de1e5397be4a94d39091423e5188 new ReplaceArgumentDefaultValue( diff --git a/config/sets/symfony/symfony3/symfony30.php b/config/sets/symfony/symfony3/symfony30.php deleted file mode 100644 index 7e7d396f5..000000000 --- a/config/sets/symfony/symfony3/symfony30.php +++ /dev/null @@ -1,23 +0,0 @@ -import(__DIR__ . '/symfony30/symfony30-class-loader.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-console.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-form.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-security.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-process.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-property-access.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-validator.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-translation.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-bridge-monolog.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-twig-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony30/symfony30-bridge-swift-mailer.php'); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-bridge-swift-mailer.php b/config/sets/symfony/symfony3/symfony30/symfony30-bridge-swift-mailer.php deleted file mode 100644 index 16d254c2c..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-bridge-swift-mailer.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // swift mailer - 'Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector' => 'Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-class-loader.php b/config/sets/symfony/symfony3/symfony30/symfony30-class-loader.php deleted file mode 100644 index 24b786409..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-class-loader.php +++ /dev/null @@ -1,52 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'registerNamespaces', - 'addPrefixes' - ), - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'registerPrefixes', - 'addPrefixes' - ), - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'registerNamespace', - 'addPrefix' - ), - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'registerPrefix', - 'addPrefix' - ), - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'getNamespaces', - 'getPrefixes' - ), - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'getNamespaceFallbacks', - 'getFallbackDirs' - ), - new MethodCallRename( - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader', - 'getPrefixFallbacks', - 'getFallbackDirs' - ), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader' => 'Symfony\Component\ClassLoader\ClassLoader', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-console.php b/config/sets/symfony/symfony3/symfony30/symfony30-console.php deleted file mode 100644 index bdac3bf33..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-console.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // console - 'Symfony\Component\Console\Helper\ProgressHelper' => 'Symfony\Component\Console\Helper\ProgressBar', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-form.php b/config/sets/symfony/symfony3/symfony30/symfony30-form.php deleted file mode 100644 index bdff319bd..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-form.php +++ /dev/null @@ -1,78 +0,0 @@ -rules([ - FormTypeInstanceToClassConstRector::class, - StringFormTypeToClassRector::class, - FormTypeGetParentRector::class, - OptionNameRector::class, - ReadOnlyOptionToAttributeRector::class, - ChangeStringCollectionOptionToConstantRector::class, - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [ - new RenameClassConstFetch('Symfony\Component\Form\FormEvents', 'PRE_BIND', 'PRE_SUBMIT'), - new RenameClassConstFetch('Symfony\Component\Form\FormEvents', 'BIND', 'SUBMIT'), - new RenameClassConstFetch('Symfony\Component\Form\FormEvents', 'POST_BIND', 'POST_SUBMIT'), - new RenameClassConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer', - 'ROUND_HALFEVEN', - 'ROUND_HALF_EVEN' - ), - new RenameClassConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer', - 'ROUND_HALFUP', - 'ROUND_HALF_UP' - ), - new RenameClassConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer', - 'ROUND_HALFDOWN', - 'ROUND_HALF_DOWN' - ), - ]); - - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Form\AbstractType', 'getName', 'getBlockPrefix'), - new MethodCallRename('Symfony\Component\Form\FormTypeInterface', 'getName', 'getBlockPrefix'), - - new MethodCallRename('Symfony\Component\Form\FormTypeInterface', 'setDefaultOptions', 'configureOptions'), - new MethodCallRename('Symfony\Component\Form\ResolvedFormTypeInterface', 'getName', 'getBlockPrefix'), - new MethodCallRename( - 'Symfony\Component\Form\AbstractTypeExtension', - 'setDefaultOptions', - 'configureOptions' - ), - new MethodCallRename('Symfony\Component\Form\Form', 'bind', 'submit'), - new MethodCallRename('Symfony\Component\Form\Form', 'isBound', 'isSubmitted'), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Form\Util\VirtualFormAwareIterator' => 'Symfony\Component\Form\Util\InheritDataAwareIterator', - 'Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase' => 'Symfony\Component\Form\Test\TypeTestCase', - 'Symfony\Component\Form\Tests\FormIntegrationTestCase' => 'Symfony\Component\Form\Test\FormIntegrationTestCase', - 'Symfony\Component\Form\Tests\FormPerformanceTestCase' => 'Symfony\Component\Form\Test\FormPerformanceTestCase', - 'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface' => 'Symfony\Component\Form\ChoiceList\ChoiceListInterface', - 'Symfony\Component\Form\Extension\Core\View\ChoiceView' => 'Symfony\Component\Form\ChoiceList\View\ChoiceView', - 'Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface' => 'Symfony\Component\Security\Csrf\CsrfTokenManagerInterface', - 'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList' => 'Symfony\Component\Form\ChoiceList\ArrayChoiceList', - 'Symfony\Component\Form\Extension\Core\ChoiceList\LazyChoiceList' => 'Symfony\Component\Form\ChoiceList\LazyChoiceList', - 'Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList' => 'Symfony\Component\Form\ChoiceList\ArrayChoiceList', - 'Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList' => 'Symfony\Component\Form\ChoiceList\ArrayChoiceList', - 'Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList' => 'Symfony\Component\Form\ChoiceList\ArrayChoiceList', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-http-kernel.php b/config/sets/symfony/symfony3/symfony30/symfony30-http-kernel.php deleted file mode 100644 index 62b2b223f..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-http-kernel.php +++ /dev/null @@ -1,31 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\HttpKernel\Log\LoggerInterface', 'emerg', 'emergency'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\LoggerInterface', 'crit', 'critical'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\LoggerInterface', 'err', 'error'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\LoggerInterface', 'warn', 'warning'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\NullLogger', 'emerg', 'emergency'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\NullLogger', 'crit', 'critical'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\NullLogger', 'err', 'error'), - new MethodCallRename('Symfony\Component\HttpKernel\Log\NullLogger', 'warn', 'warning'), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\HttpKernel\Debug\ErrorHandler' => 'Symfony\Component\Debug\ErrorHandler', - 'Symfony\Component\HttpKernel\Debug\ExceptionHandler' => 'Symfony\Component\Debug\ExceptionHandler', - 'Symfony\Component\HttpKernel\Exception\FatalErrorException' => 'Symfony\Component\Debug\Exception\FatalErrorException', - 'Symfony\Component\HttpKernel\Exception\FlattenException' => 'Symfony\Component\Debug\Exception\FlattenException', - 'Symfony\Component\HttpKernel\Log\LoggerInterface' => 'Psr\Log\LoggerInterface', - 'Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass' => 'Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass', - 'Symfony\Component\HttpKernel\Log\NullLogger' => 'Psr\Log\LoggerInterface', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-process.php b/config/sets/symfony/symfony3/symfony30/symfony30-process.php deleted file mode 100644 index d82c03528..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-process.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Process\Process', 'setStdin', 'setInput'), - new MethodCallRename('Symfony\Component\Process\Process', 'getStdin', 'getInput'), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-property-access.php b/config/sets/symfony/symfony3/symfony30/symfony30-property-access.php deleted file mode 100644 index eec3421c4..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-property-access.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\PropertyAccess\PropertyAccess', - 'getPropertyAccessor', - 'createPropertyAccessor' - ), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-security.php b/config/sets/symfony/symfony3/symfony30/symfony30-security.php deleted file mode 100644 index 9f97bee63..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-security.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter' => 'Symfony\Component\Security\Core\Authorization\Voter\Voter', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-translation.php b/config/sets/symfony/symfony3/symfony30/symfony30-translation.php deleted file mode 100644 index ba64fc1a9..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-translation.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Translation\Dumper\FileDumper', 'format', 'formatCatalogue'), - new MethodCallRename('Symfony\Component\Translation\Translator', 'getMessages', 'getCatalogue'), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-twig-bundle.php b/config/sets/symfony/symfony3/symfony30/symfony30-twig-bundle.php deleted file mode 100644 index d51460ecd..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-twig-bundle.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Bundle\TwigBundle\TwigDefaultEscapingStrategy' => 'Twig_FileExtensionEscapingStrategy', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony30/symfony30-validator.php b/config/sets/symfony/symfony3/symfony30/symfony30-validator.php deleted file mode 100644 index fda92eef9..000000000 --- a/config/sets/symfony/symfony3/symfony30/symfony30-validator.php +++ /dev/null @@ -1,46 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Validator\Constraints\Collection\Optional' => 'Symfony\Component\Validator\Constraints\Optional', - 'Symfony\Component\Validator\Constraints\Collection\Required' => 'Symfony\Component\Validator\Constraints\Required', - 'Symfony\Component\Validator\MetadataInterface' => 'Symfony\Component\Validator\Mapping\MetadataInterface', - 'Symfony\Component\Validator\PropertyMetadataInterface' => 'Symfony\Component\Validator\Mapping\PropertyMetadataInterface', - 'Symfony\Component\Validator\PropertyMetadataContainerInterface' => 'Symfony\Component\Validator\Mapping\ClassMetadataInterface', - 'Symfony\Component\Validator\ClassBasedInterface' => 'Symfony\Component\Validator\Mapping\ClassMetadataInterface', - 'Symfony\Component\Validator\Mapping\ElementMetadata' => 'Symfony\Component\Validator\Mapping\GenericMetadata', - 'Symfony\Component\Validator\ExecutionContextInterface' => 'Symfony\Component\Validator\Context\ExecutionContextInterface', - 'Symfony\Component\Validator\Mapping\ClassMetadataFactory' => 'Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory', - 'Symfony\Component\Validator\Mapping\MetadataFactoryInterface' => 'Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface', - ]); - - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\Validator\ConstraintViolationInterface', - 'getMessageParameters', - 'getParameters' - ), - new MethodCallRename( - 'Symfony\Component\Validator\ConstraintViolationInterface', - 'getMessagePluralization', - 'getPlural' - ), - new MethodCallRename( - 'Symfony\Component\Validator\ConstraintViolation', - 'getMessageParameters', - 'getParameters' - ), - new MethodCallRename( - 'Symfony\Component\Validator\ConstraintViolation', - 'getMessagePluralization', - 'getPlural' - ), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony31.php b/config/sets/symfony/symfony3/symfony31.php deleted file mode 100644 index 7aa92b7f2..000000000 --- a/config/sets/symfony/symfony3/symfony31.php +++ /dev/null @@ -1,9 +0,0 @@ -import(__DIR__ . '/symfony31/symfony31-yaml.php'); -}; diff --git a/config/sets/symfony/symfony3/symfony31/symfony31-yaml.php b/config/sets/symfony/symfony3/symfony31/symfony31-yaml.php deleted file mode 100644 index e59c2eb72..000000000 --- a/config/sets/symfony/symfony3/symfony31/symfony31-yaml.php +++ /dev/null @@ -1,43 +0,0 @@ -ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ - new ReplaceArgumentDefaultValue('Symfony\Component\Yaml\Yaml', 'parse', 1, [ - false, - false, - true, - ], 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'), - new ReplaceArgumentDefaultValue('Symfony\Component\Yaml\Yaml', 'parse', 1, [ - false, - true, - ], 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\Yaml\Yaml', - 'parse', - 1, - true, - 'Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE' - ), - new ReplaceArgumentDefaultValue('Symfony\Component\Yaml\Yaml', 'parse', 1, false, 0), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\Yaml\Yaml', - 'dump', - 3, - [false, true], - 'Symfony\Component\Yaml\Yaml::DUMP_OBJECT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\Yaml\Yaml', - 'dump', - 3, - true, - 'Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE' - ), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony32.php b/config/sets/symfony/symfony3/symfony32.php deleted file mode 100644 index bddb927fa..000000000 --- a/config/sets/symfony/symfony3/symfony32.php +++ /dev/null @@ -1,10 +0,0 @@ -import(__DIR__ . '/symfony32/symfony32-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony32/symfony32-http-foundation.php'); -}; diff --git a/config/sets/symfony/symfony3/symfony32/symfony32-dependency-injection.php b/config/sets/symfony/symfony3/symfony32/symfony32-dependency-injection.php deleted file mode 100644 index 39d4fb31b..000000000 --- a/config/sets/symfony/symfony3/symfony32/symfony32-dependency-injection.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Component\DependencyInjection\ContainerBuilder', - 'addCompilerPass', - 2, - 'priority', - 0 - ), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony32/symfony32-http-foundation.php b/config/sets/symfony/symfony3/symfony32/symfony32-http-foundation.php deleted file mode 100644 index f424b9bc3..000000000 --- a/config/sets/symfony/symfony3/symfony32/symfony32-http-foundation.php +++ /dev/null @@ -1,27 +0,0 @@ -ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - '__construct', - 8, - 'lax', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_LAX' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - '__construct', - 8, - 'strict', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_STRICT' - ), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony33.php b/config/sets/symfony/symfony3/symfony33.php deleted file mode 100644 index 711068364..000000000 --- a/config/sets/symfony/symfony3/symfony33.php +++ /dev/null @@ -1,12 +0,0 @@ -import(__DIR__ . '/symfony33/symfony33-console.php'); - $rectorConfig->import(__DIR__ . '/symfony33/symfony33-debug.php'); - $rectorConfig->import(__DIR__ . '/symfony33/symfony33-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony33/symfony33-framework-bundle.php'); -}; diff --git a/config/sets/symfony/symfony3/symfony33/symfony33-console.php b/config/sets/symfony/symfony3/symfony33/symfony33-console.php deleted file mode 100644 index 3735565ac..000000000 --- a/config/sets/symfony/symfony3/symfony33/symfony33-console.php +++ /dev/null @@ -1,16 +0,0 @@ -rules([ConsoleExceptionToErrorEventConstantRector::class]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - // console - 'Symfony\Component\Console\Event\ConsoleExceptionEvent' => 'Symfony\Component\Console\Event\ConsoleErrorEvent', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony33/symfony33-debug.php b/config/sets/symfony/symfony3/symfony33/symfony33-debug.php deleted file mode 100644 index 492d6a221..000000000 --- a/config/sets/symfony/symfony3/symfony33/symfony33-debug.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // debug - 'Symfony\Component\Debug\Exception\ContextErrorException' => 'ErrorException', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony33/symfony33-dependency-injection.php b/config/sets/symfony/symfony3/symfony33/symfony33-dependency-injection.php deleted file mode 100644 index 614ca6445..000000000 --- a/config/sets/symfony/symfony3/symfony33/symfony33-dependency-injection.php +++ /dev/null @@ -1,44 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Component\DependencyInjection\ContainerBuilder', - 'compile', - 0, - 'resolveEnvPlaceholders', - false - ), - new ArgumentAdder( - 'Symfony\Component\DependencyInjection\ContainerBuilder', - 'addCompilerPass', - 2, - 'priority', - 0 - ), - new ArgumentAdder( - 'Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph', - 'connect', - 6, - 'weak', - false - ), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\DependencyInjection\DefinitionDecorator' => 'Symfony\Component\DependencyInjection\ChildDefinition', - ]); - - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\DependencyInjection\Container', 'isFrozen', 'isCompiled'), - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony33/symfony33-framework-bundle.php b/config/sets/symfony/symfony3/symfony33/symfony33-framework-bundle.php deleted file mode 100644 index 34ebb921b..000000000 --- a/config/sets/symfony/symfony3/symfony33/symfony33-framework-bundle.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - # framework bundle - 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass' => 'Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass', - 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass' => 'Symfony\Component\Serializer\DependencyInjection\SerializerPass', - 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass' => 'Symfony\Component\Form\DependencyInjection\FormPass', - 'Symfony\Bundle\FrameworkBundle\EventListener\SessionListener' => 'Symfony\Component\HttpKernel\EventListener\SessionListener', - 'Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener' => 'Symfony\Component\HttpKernel\EventListener\TestSessionListener', - 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass' => 'Symfony\Component\Config\DependencyInjection\ConfigCachePass', - 'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\PropertyInfoPass' => 'Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass', - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony34.php b/config/sets/symfony/symfony3/symfony34.php deleted file mode 100644 index 51de6e82f..000000000 --- a/config/sets/symfony/symfony3/symfony34.php +++ /dev/null @@ -1,12 +0,0 @@ -import(__DIR__ . '/symfony34/symfony34-yaml.php'); - $rectorConfig->import(__DIR__ . '/symfony34/symfony34-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony34/symfony34-sensio-framework-extra-bundle.php'); - -}; diff --git a/config/sets/symfony/symfony3/symfony34/symfony34-dependency-injection.php b/config/sets/symfony/symfony3/symfony34/symfony34-dependency-injection.php deleted file mode 100644 index 08a87eff1..000000000 --- a/config/sets/symfony/symfony3/symfony34/symfony34-dependency-injection.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([ContainerGetNameToTypeInTestsRector::class]); -}; diff --git a/config/sets/symfony/symfony3/symfony34/symfony34-sensio-framework-extra-bundle.php b/config/sets/symfony/symfony3/symfony34/symfony34-sensio-framework-extra-bundle.php deleted file mode 100644 index 890ccf743..000000000 --- a/config/sets/symfony/symfony3/symfony34/symfony34-sensio-framework-extra-bundle.php +++ /dev/null @@ -1,16 +0,0 @@ -rules([ - MergeMethodAnnotationToRouteAnnotationRector::class, - RemoveServiceFromSensioRouteRector::class, - ReplaceSensioRouteAnnotationWithSymfonyRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony3/symfony34/symfony34-yaml.php b/config/sets/symfony/symfony3/symfony34/symfony34-yaml.php deleted file mode 100644 index 237dc1cc6..000000000 --- a/config/sets/symfony/symfony3/symfony34/symfony34-yaml.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(ArgumentRemoverRector::class, [ - new ArgumentRemover( - 'Symfony\Component\Yaml\Yaml', - 'parse', - 2, - ['Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'] - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony40.php b/config/sets/symfony/symfony4/symfony40.php deleted file mode 100644 index c6b812714..000000000 --- a/config/sets/symfony/symfony4/symfony40.php +++ /dev/null @@ -1,13 +0,0 @@ -import(__DIR__ . '/symfony40/symfony40-validator.php'); - $rectorConfig->import(__DIR__ . '/symfony40/symfony40-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony40/symfony40-process.php'); - $rectorConfig->import(__DIR__ . '/symfony40/symfony40-form.php'); - $rectorConfig->import(__DIR__ . '/symfony40/symfony40-var-dumper.php'); -}; diff --git a/config/sets/symfony/symfony4/symfony40/symfony40-dependency-injection.php b/config/sets/symfony/symfony4/symfony40/symfony40-dependency-injection.php deleted file mode 100644 index d029830b5..000000000 --- a/config/sets/symfony/symfony4/symfony40/symfony40-dependency-injection.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([ContainerBuilderCompileEnvArgumentRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony40/symfony40-form.php b/config/sets/symfony/symfony4/symfony40/symfony40-form.php deleted file mode 100644 index f54ea6514..000000000 --- a/config/sets/symfony/symfony4/symfony40/symfony40-form.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([FormIsValidRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony40/symfony40-process.php b/config/sets/symfony/symfony4/symfony40/symfony40-process.php deleted file mode 100644 index 02a69337a..000000000 --- a/config/sets/symfony/symfony4/symfony40/symfony40-process.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Process\ProcessBuilder' => 'Symfony\Component\Process\Process', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony40/symfony40-validator.php b/config/sets/symfony/symfony4/symfony40/symfony40-validator.php deleted file mode 100644 index 9475e8648..000000000 --- a/config/sets/symfony/symfony4/symfony40/symfony40-validator.php +++ /dev/null @@ -1,15 +0,0 @@ -rules([ConstraintUrlOptionRector::class]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest' => 'Symfony\Component\Validator\Test\ConstraintValidatorTestCase', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony40/symfony40-var-dumper.php b/config/sets/symfony/symfony4/symfony40/symfony40-var-dumper.php deleted file mode 100644 index b676c11bf..000000000 --- a/config/sets/symfony/symfony4/symfony40/symfony40-var-dumper.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([VarDumperTestTraitMethodArgsRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony41.php b/config/sets/symfony/symfony4/symfony41.php deleted file mode 100644 index ee504d832..000000000 --- a/config/sets/symfony/symfony4/symfony41.php +++ /dev/null @@ -1,13 +0,0 @@ -import(__DIR__ . '/symfony41/symfony41-console.php'); - $rectorConfig->import(__DIR__ . '/symfony41/symfony41-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony41/symfony41-workflow.php'); - $rectorConfig->import(__DIR__ . '/symfony41/symfony41-framework-bundle.php'); -}; diff --git a/config/sets/symfony/symfony4/symfony41/symfony41-console.php b/config/sets/symfony/symfony4/symfony41/symfony41-console.php deleted file mode 100644 index 54d00edd3..000000000 --- a/config/sets/symfony/symfony4/symfony41/symfony41-console.php +++ /dev/null @@ -1,47 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - # https://github.com/symfony/symfony/commit/463f986c28a497571967e37c1314e9911f1ef6ba - new MethodCallRename( - 'Symfony\Component\Console\Helper\TableStyle', - 'setHorizontalBorderChar', - 'setHorizontalBorderChars' - ), - # https://github.com/symfony/symfony/commit/463f986c28a497571967e37c1314e9911f1ef6ba - new MethodCallRename( - 'Symfony\Component\Console\Helper\TableStyle', - 'setVerticalBorderChar', - 'setVerticalBorderChars' - ), - # https://github.com/symfony/symfony/commit/463f986c28a497571967e37c1314e9911f1ef6ba - new MethodCallRename( - 'Symfony\Component\Console\Helper\TableStyle', - 'setCrossingChar', - 'setDefaultCrossingChar' - ), - - # https://github.com/symfony/symfony/commit/463f986c28a497571967e37c1314e9911f1ef6ba - new MethodCallRenameWithArrayKey( - 'Symfony\Component\Console\Helper\TableStyle', - 'getVerticalBorderChar', - # special case to "getVerticalBorderChar" → "getBorderChars()[3]" - 'getBorderChars', - 3 - ), - # https://github.com/symfony/symfony/commit/463f986c28a497571967e37c1314e9911f1ef6ba - new MethodCallRenameWithArrayKey( - 'Symfony\Component\Console\Helper\TableStyle', - 'getHorizontalBorderChar', - 'getBorderChars', - 2 - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony41/symfony41-framework-bundle.php b/config/sets/symfony/symfony4/symfony41/symfony41-framework-bundle.php deleted file mode 100644 index 265595231..000000000 --- a/config/sets/symfony/symfony4/symfony41/symfony41-framework-bundle.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - # https://github.com/symfony/symfony/commit/07dd09db59e2f2a86a291d00d978169d9059e307 - 'Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector' => 'Symfony\Component\HttpKernel\DataCollector\RequestDataCollector', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony41/symfony41-http-foundation.php b/config/sets/symfony/symfony4/symfony41/symfony41-http-foundation.php deleted file mode 100644 index 78e7376c8..000000000 --- a/config/sets/symfony/symfony4/symfony41/symfony41-http-foundation.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\HttpFoundation\File\UploadedFile', 'getClientSize', 'getSize'), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony41/symfony41-workflow.php b/config/sets/symfony/symfony4/symfony41/symfony41-workflow.php deleted file mode 100644 index 5f519315b..000000000 --- a/config/sets/symfony/symfony4/symfony41/symfony41-workflow.php +++ /dev/null @@ -1,20 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Workflow\DefinitionBuilder', 'reset', 'clear'), - new MethodCallRename('Symfony\Component\Workflow\DefinitionBuilder', 'add', 'addWorkflow'), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Workflow\SupportStrategy\SupportStrategyInterface' => 'Symfony\Component\Workflow\SupportStrategy\WorkflowSupportStrategyInterface', - 'Symfony\Component\Workflow\SupportStrategy\ClassInstanceSupportStrategy' => 'Symfony\Component\Workflow\SupportStrategy\InstanceOfSupportStrategy', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42.php b/config/sets/symfony/symfony4/symfony42.php deleted file mode 100644 index 583a36761..000000000 --- a/config/sets/symfony/symfony4/symfony42.php +++ /dev/null @@ -1,22 +0,0 @@ -import(__DIR__ . '/symfony42/symfony42-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-framework-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-translation.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-process.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-config.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-dom-crawler.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-finder.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-monolog-bridge.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-serializer.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-form.php'); - $rectorConfig->import(__DIR__ . '/symfony42/symfony42-cache.php'); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-cache.php b/config/sets/symfony/symfony4/symfony42/symfony42-cache.php deleted file mode 100644 index e8fd3ea27..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-cache.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Cache\CacheItem', 'getPreviousTags', 'getMetadata'), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-config.php b/config/sets/symfony/symfony4/symfony42/symfony42-config.php deleted file mode 100644 index 349c41681..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-config.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // https://symfony.com/blog/new-in-symfony-4-2-important-deprecations - RootNodeTreeBuilderRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-dom-crawler.php b/config/sets/symfony/symfony4/symfony42/symfony42-dom-crawler.php deleted file mode 100644 index f6196ca22..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-dom-crawler.php +++ /dev/null @@ -1,22 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Component\DomCrawler\Crawler', - 'children', - 0, - null, - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-finder.php b/config/sets/symfony/symfony4/symfony42/symfony42-finder.php deleted file mode 100644 index ab3d39c04..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-finder.php +++ /dev/null @@ -1,22 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Component\Finder\Finder', - 'sortByName', - 0, - null, - false, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-form.php b/config/sets/symfony/symfony4/symfony42/symfony42-form.php deleted file mode 100644 index ae5f82018..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-form.php +++ /dev/null @@ -1,50 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Form\AbstractTypeExtension', 'getExtendedType', 'getExtendedTypes'), - ]); - - $iterableType = new IterableType(new MixedType(), new MixedType()); - - $rectorConfig->ruleWithConfiguration( - AddReturnTypeDeclarationRector::class, - [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\AbstractTypeExtension', - 'getExtendedTypes', - $iterableType - ), - ] - ); - - $rectorConfig->ruleWithConfiguration( - ChangeMethodVisibilityRector::class, - [new ChangeMethodVisibility( - 'Symfony\Component\Form\AbstractTypeExtension', - 'getExtendedTypes', - Visibility::STATIC - ), - ] - ); - - $rectorConfig->ruleWithConfiguration( - WrapReturnRector::class, - [new WrapReturn('Symfony\Component\Form\AbstractTypeExtension', 'getExtendedTypes', true)] - ); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-framework-bundle.php b/config/sets/symfony/symfony4/symfony42/symfony42-framework-bundle.php deleted file mode 100644 index da1e0ad1e..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-framework-bundle.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - # https://github.com/symfony/symfony/commit/a7e319d9e1316e2e18843f8ce15b67a8693e5bf9 - 'Symfony\Bundle\FrameworkBundle\Controller\Controller' => 'Symfony\Bundle\FrameworkBundle\Controller\AbstractController', - # https://github.com/symfony/symfony/commit/744bf0e7ac3ecf240d0bf055cc58f881bb0b3ec0 - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-http-foundation.php b/config/sets/symfony/symfony4/symfony42/symfony42-http-foundation.php deleted file mode 100644 index c0772c302..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-http-foundation.php +++ /dev/null @@ -1,57 +0,0 @@ -ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - MethodName::CONSTRUCT, - 5, - false, - null - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - MethodName::CONSTRUCT, - 8, - null, - 'lax' - ), - - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - '__construct', - 8, - 'none', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_NONE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - 'create', - 8, - 'none', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_NONE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - 'create', - 8, - 'lax', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_LAX' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - 'create', - 8, - 'strict', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_STRICT' - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-http-kernel.php b/config/sets/symfony/symfony4/symfony42/symfony42-http-kernel.php deleted file mode 100644 index 42643b8b8..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-http-kernel.php +++ /dev/null @@ -1,27 +0,0 @@ -ruleWithConfiguration(ArgumentRemoverRector::class, [ - new ArgumentRemover( - 'Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector', - MethodName::CONSTRUCT, - 0, - null - ), - new ArgumentRemover( - 'Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector', - MethodName::CONSTRUCT, - 1, - null - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-monolog-bridge.php b/config/sets/symfony/symfony4/symfony42/symfony42-monolog-bridge.php deleted file mode 100644 index 3cd972ef8..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-monolog-bridge.php +++ /dev/null @@ -1,49 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Bridge\Monolog\Processor\DebugProcessor', - 'getLogs', - 0, - null, - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - new ArgumentAdder( - 'Symfony\Bridge\Monolog\Processor\DebugProcessor', - 'countErrors', - 0, - 'default_value', - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - new ArgumentAdder( - 'Symfony\Bridge\Monolog\Logger', - 'getLogs', - 0, - 'default_value', - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - new ArgumentAdder( - 'Symfony\Bridge\Monolog\Logger', - 'countErrors', - 0, - 'default_value', - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-process.php b/config/sets/symfony/symfony4/symfony42/symfony42-process.php deleted file mode 100644 index 4abe48e0d..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-process.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // https://symfony.com/blog/new-in-symfony-4-2-important-deprecations - StringToArrayArgumentProcessRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-serializer.php b/config/sets/symfony/symfony4/symfony42/symfony42-serializer.php deleted file mode 100644 index 5627f0b3d..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-serializer.php +++ /dev/null @@ -1,31 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Component\Serializer\Normalizer', - 'handleCircularReference', - 1, - null, - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - new ArgumentAdder( - 'Symfony\Component\Serializer\Normalizer', - 'handleCircularReference', - 2, - null, - null, - null, - ArgumentAddingScope::SCOPE_METHOD_CALL - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony42/symfony42-translation.php b/config/sets/symfony/symfony4/symfony42/symfony42-translation.php deleted file mode 100644 index 331446f5c..000000000 --- a/config/sets/symfony/symfony4/symfony42/symfony42-translation.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Translation\TranslatorInterface' => 'Symfony\Contracts\Translation\TranslatorInterface', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43.php b/config/sets/symfony/symfony4/symfony43.php deleted file mode 100644 index b977b86a5..000000000 --- a/config/sets/symfony/symfony4/symfony43.php +++ /dev/null @@ -1,20 +0,0 @@ -import(__DIR__ . '/symfony43/symfony43-browser-kit.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-cache.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-event-dispatcher.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-framework-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-intl.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-security-http.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-twig-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony43/symfony43-workflow.php'); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-browser-kit.php b/config/sets/symfony/symfony4/symfony43/symfony43-browser-kit.php deleted file mode 100644 index 0fac5a6fc..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-browser-kit.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\BrowserKit\Response', 'getStatus', 'getStatusCode'), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\BrowserKit\Client' => 'Symfony\Component\BrowserKit\AbstractBrowser', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-cache.php b/config/sets/symfony/symfony4/symfony43/symfony43-cache.php deleted file mode 100644 index 5dfb98a61..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-cache.php +++ /dev/null @@ -1,26 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - # https://github.com/symfony/symfony/pull/29236 - 'Symfony\Component\Cache\Traits\ApcuTrait\ApcuCache' => 'Symfony\Component\Cache\Traits\ApcuTrait\ApcuAdapter', - 'Symfony\Component\Cache\Adapter\SimpleCacheAdapter' => 'Symfony\Component\Cache\Adapter\Psr16Adapter', - 'Symfony\Component\Cache\Simple\ArrayCache' => 'Symfony\Component\Cache\Adapter\ArrayAdapter', - 'Symfony\Component\Cache\Simple\ChainCache' => 'Symfony\Component\Cache\Adapter\ChainAdapter', - 'Symfony\Component\Cache\Simple\DoctrineCache' => 'Symfony\Component\Cache\Adapter\DoctrineAdapter', - 'Symfony\Component\Cache\Simple\FilesystemCache' => 'Symfony\Component\Cache\Adapter\FilesystemAdapter', - 'Symfony\Component\Cache\Simple\MemcachedCache' => 'Symfony\Component\Cache\Adapter\MemcachedAdapter', - 'Symfony\Component\Cache\Simple\NullCache' => 'Symfony\Component\Cache\Adapter\NullAdapter', - 'Symfony\Component\Cache\Simple\PdoCache' => 'Symfony\Component\Cache\Adapter\PdoAdapter', - 'Symfony\Component\Cache\Simple\PhpArrayCache' => 'Symfony\Component\Cache\Adapter\PhpArrayAdapter', - 'Symfony\Component\Cache\Simple\PhpFilesCache' => 'Symfony\Component\Cache\Adapter\PhpFilesAdapter', - 'Symfony\Component\Cache\Simple\RedisCache' => 'Symfony\Component\Cache\Adapter\RedisAdapter', - 'Symfony\Component\Cache\Simple\TraceableCache' => 'Symfony\Component\Cache\Adapter\TraceableAdapterCache', - 'Symfony\Component\Cache\Simple\Psr6Cache' => 'Symfony\Component\Cache\Psr16Cache', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-event-dispatcher.php b/config/sets/symfony/symfony4/symfony43/symfony43-event-dispatcher.php deleted file mode 100644 index 7ded8751b..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-event-dispatcher.php +++ /dev/null @@ -1,20 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // has lowest priority, have to be last - 'Symfony\Component\EventDispatcher\Event' => 'Symfony\Contracts\EventDispatcher\Event', - ]); - - $rectorConfig->rules([ - MakeDispatchFirstArgumentEventRector::class, - EventDispatcherParentConstructRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-framework-bundle.php b/config/sets/symfony/symfony4/symfony43/symfony43-framework-bundle.php deleted file mode 100644 index a9b7527d3..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-framework-bundle.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // assets deprecation - 'Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper' => 'Symfony\Component\Asset\Packages', - - // templating - 'Symfony\Bundle\FrameworkBundle\Templating\EngineInterface' => 'Symfony\Component\Templating\EngineInterface', - ]); - - $rectorConfig->rules([ConvertRenderTemplateShortNotationToBundleSyntaxRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-http-foundation.php b/config/sets/symfony/symfony4/symfony43/symfony43-http-foundation.php deleted file mode 100644 index 7f5f9b7d3..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-http-foundation.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // MimeType - 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface' => 'Symfony\Component\Mime\MimeTypesInterface', - 'Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface' => 'Symfony\Component\Mime\MimeTypesInterface', - 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser' => 'Symfony\Component\Mime\MimeTypes', - 'Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser' => 'Symfony\Component\Mime\FileBinaryMimeTypeGuesser', - 'Symfony\Component\HttpFoundation\File\MimeType\FileinfoMimeTypeGuesser' => 'Symfony\Component\Mime\FileinfoMimeTypeGuesser', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-http-kernel.php b/config/sets/symfony/symfony4/symfony43/symfony43-http-kernel.php deleted file mode 100644 index bdd0d7d6f..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-http-kernel.php +++ /dev/null @@ -1,22 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // EventDispatcher - 'Symfony\Component\HttpKernel\Event\FilterControllerArgumentsEvent' => 'Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent', - 'Symfony\Component\HttpKernel\Event\FilterControllerEvent' => 'Symfony\Component\HttpKernel\Event\ControllerEvent', - 'Symfony\Component\HttpKernel\Event\FilterResponseEvent' => 'Symfony\Component\HttpKernel\Event\ResponseEvent', - 'Symfony\Component\HttpKernel\Event\GetResponseEvent' => 'Symfony\Component\HttpKernel\Event\RequestEvent', - 'Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent' => 'Symfony\Component\HttpKernel\Event\ViewEvent', - 'Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent' => 'Symfony\Component\HttpKernel\Event\ExceptionEvent', - 'Symfony\Component\HttpKernel\Event\PostResponseEvent' => 'Symfony\Component\HttpKernel\Event\TerminateEvent', - - // @todo unpack after YAML to PHP migration, Symfony\Component\HttpKernel\Client: Symfony\Component\HttpKernel\HttpKernelBrowser - 'Symfony\Component\HttpKernel\EventListener\TranslatorListener' => 'Symfony\Component\HttpKernel\EventListener\LocaleAwareListener', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-intl.php b/config/sets/symfony/symfony4/symfony43/symfony43-intl.php deleted file mode 100644 index e9382013a..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-intl.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([GetCurrencyBundleMethodCallsToIntlRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-security-core.php b/config/sets/symfony/symfony4/symfony43/symfony43-security-core.php deleted file mode 100644 index 29e8c128f..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-security-core.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - # Security - 'Symfony\Component\Security\Core\Encoder\Argon2iPasswordEncoder' => 'Symfony\Component\Security\Core\Encoder\SodiumPasswordEncoder', - 'Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder' => 'Symfony\Component\Security\Core\Encoder\NativePasswordEncoder', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-security-http.php b/config/sets/symfony/symfony4/symfony43/symfony43-security-http.php deleted file mode 100644 index fbd042523..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-security-http.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Security\Http\Firewall', 'handleRequest', 'callListeners'), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-twig-bundle.php b/config/sets/symfony/symfony4/symfony43/symfony43-twig-bundle.php deleted file mode 100644 index 903b98e01..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-twig-bundle.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([TwigBundleFilesystemLoaderToTwigRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony43/symfony43-workflow.php b/config/sets/symfony/symfony4/symfony43/symfony43-workflow.php deleted file mode 100644 index 709cd6521..000000000 --- a/config/sets/symfony/symfony4/symfony43/symfony43-workflow.php +++ /dev/null @@ -1,20 +0,0 @@ -ruleWithConfiguration(ArgumentAdderRector::class, [ - new ArgumentAdder( - 'Symfony\Component\Workflow\MarkingStore\MarkingStoreInterface', - 'setMarking', - 2, - 'context', - [] - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony44.php b/config/sets/symfony/symfony4/symfony44.php deleted file mode 100644 index a9dd7e9c9..000000000 --- a/config/sets/symfony/symfony4/symfony44.php +++ /dev/null @@ -1,16 +0,0 @@ -import(__DIR__ . '/symfony44/symfony44-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony44/symfony44-console.php'); - $rectorConfig->import(__DIR__ . '/symfony44/symfony44-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony44/symfony44-templating.php'); - $rectorConfig->import(__DIR__ . '/symfony44/symfony44-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony44/symfony44-web-link.php'); -}; diff --git a/config/sets/symfony/symfony4/symfony44/symfony44-console.php b/config/sets/symfony/symfony4/symfony44/symfony44-console.php deleted file mode 100644 index 0804f8f36..000000000 --- a/config/sets/symfony/symfony4/symfony44/symfony44-console.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // https://github.com/symfony/symfony/pull/33775 - ConsoleExecuteReturnIntRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony44/symfony44-dependency-injection.php b/config/sets/symfony/symfony4/symfony44/symfony44-dependency-injection.php deleted file mode 100644 index 73513ce39..000000000 --- a/config/sets/symfony/symfony4/symfony44/symfony44-dependency-injection.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameFunctionRector::class, [ - 'Symfony\Component\DependencyInjection\Loader\Configurator\tagged' => 'Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony44/symfony44-http-kernel.php b/config/sets/symfony/symfony4/symfony44/symfony44-http-kernel.php deleted file mode 100644 index ee793b435..000000000 --- a/config/sets/symfony/symfony4/symfony44/symfony44-http-kernel.php +++ /dev/null @@ -1,25 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // https://github.com/symfony/http-kernel/blob/801b925e308518ddf821ba91952c41ae77c77507/Event/GetResponseForExceptionEvent.php#L55 - new MethodCallRename( - 'Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent', - 'getException', - 'getThrowable' - ), - - // https://github.com/symfony/http-kernel/blob/801b925e308518ddf821ba91952c41ae77c77507/Event/GetResponseForExceptionEvent.php#L67 - new MethodCallRename( - 'Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent', - 'setException', - 'setThrowable' - ), - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony44/symfony44-security-core.php b/config/sets/symfony/symfony4/symfony44/symfony44-security-core.php deleted file mode 100644 index c6ee96035..000000000 --- a/config/sets/symfony/symfony4/symfony44/symfony44-security-core.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([AuthorizationCheckerIsGrantedExtractorRector::class]); -}; diff --git a/config/sets/symfony/symfony4/symfony44/symfony44-templating.php b/config/sets/symfony/symfony4/symfony44/symfony44-templating.php deleted file mode 100644 index 834ec702c..000000000 --- a/config/sets/symfony/symfony4/symfony44/symfony44-templating.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Templating\EngineInterface' => 'Twig\Environment', - ]); -}; diff --git a/config/sets/symfony/symfony4/symfony44/symfony44-web-link.php b/config/sets/symfony/symfony4/symfony44/symfony44-web-link.php deleted file mode 100644 index e6bab15f6..000000000 --- a/config/sets/symfony/symfony4/symfony44/symfony44-web-link.php +++ /dev/null @@ -1,327 +0,0 @@ -ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'alternate', - 'Symfony\Component\WebLink\Link::REL_ALTERNATE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'author', - 'Symfony\Component\WebLink\Link::REL_AUTHOR' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'help', - 'Symfony\Component\WebLink\Link::REL_HELP' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'icon', - 'Symfony\Component\WebLink\Link::REL_ICON' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'license', - 'Symfony\Component\WebLink\Link::REL_LICENSE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'search', - 'Symfony\Component\WebLink\Link::REL_SEARCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'stylesheet', - 'Symfony\Component\WebLink\Link::REL_STYLESHEET' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'next', - 'Symfony\Component\WebLink\Link::REL_NEXT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'prev', - 'Symfony\Component\WebLink\Link::REL_PREV' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'preload', - 'Symfony\Component\WebLink\Link::REL_PRELOAD' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'dns-prefetch', - 'Symfony\Component\WebLink\Link::REL_DNS_PREFETCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'preconnect', - 'Symfony\Component\WebLink\Link::REL_PRECONNECT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'prefetch', - 'Symfony\Component\WebLink\Link::REL_PREFETCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'prerender', - 'Symfony\Component\WebLink\Link::REL_PRERENDER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'mercure', - 'Symfony\Component\WebLink\Link::REL_MERCURE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'alternate', - 'Symfony\Component\WebLink\Link::REL_ALTERNATE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'author', - 'Symfony\Component\WebLink\Link::REL_AUTHOR' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'help', - 'Symfony\Component\WebLink\Link::REL_HELP' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'icon', - 'Symfony\Component\WebLink\Link::REL_ICON' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'license', - 'Symfony\Component\WebLink\Link::REL_LICENSE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'search', - 'Symfony\Component\WebLink\Link::REL_SEARCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'stylesheet', - 'Symfony\Component\WebLink\Link::REL_STYLESHEET' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'next', - 'Symfony\Component\WebLink\Link::REL_NEXT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'prev', - 'Symfony\Component\WebLink\Link::REL_PREV' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'preload', - 'Symfony\Component\WebLink\Link::REL_PRELOAD' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'dns-prefetch', - 'Symfony\Component\WebLink\Link::REL_DNS_PREFETCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'preconnect', - 'Symfony\Component\WebLink\Link::REL_PRECONNECT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'prefetch', - 'Symfony\Component\WebLink\Link::REL_PREFETCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'prerender', - 'Symfony\Component\WebLink\Link::REL_PRERENDER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withRel', - 0, - 'mercure', - 'Symfony\Component\WebLink\Link::REL_MERCURE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'alternate', - 'Symfony\Component\WebLink\Link::REL_ALTERNATE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'author', - 'Symfony\Component\WebLink\Link::REL_AUTHOR' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'help', - 'Symfony\Component\WebLink\Link::REL_HELP' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'icon', - 'Symfony\Component\WebLink\Link::REL_ICON' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'license', - 'Symfony\Component\WebLink\Link::REL_LICENSE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'search', - 'Symfony\Component\WebLink\Link::REL_SEARCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'stylesheet', - 'Symfony\Component\WebLink\Link::REL_STYLESHEET' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'next', - 'Symfony\Component\WebLink\Link::REL_NEXT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'prev', - 'Symfony\Component\WebLink\Link::REL_PREV' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'preload', - 'Symfony\Component\WebLink\Link::REL_PRELOAD' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'dns-prefetch', - 'Symfony\Component\WebLink\Link::REL_DNS_PREFETCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'preconnect', - 'Symfony\Component\WebLink\Link::REL_PRECONNECT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'prefetch', - 'Symfony\Component\WebLink\Link::REL_PREFETCH' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'prerender', - 'Symfony\Component\WebLink\Link::REL_PRERENDER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - 'withoutRel', - 0, - 'mercure', - 'Symfony\Component\WebLink\Link::REL_MERCURE' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony50.php b/config/sets/symfony/symfony5/symfony50.php deleted file mode 100644 index 450e06234..000000000 --- a/config/sets/symfony/symfony5/symfony50.php +++ /dev/null @@ -1,13 +0,0 @@ -import(__DIR__ . '/symfony50/symfony50-types.php'); - $rectorConfig->import(__DIR__ . '/symfony50/symfony50-console.php'); - $rectorConfig->import(__DIR__ . '/symfony50/symfony50-debug.php'); -}; diff --git a/config/sets/symfony/symfony5/symfony50/symfony50-console.php b/config/sets/symfony/symfony5/symfony50/symfony50-console.php deleted file mode 100644 index 43ecfa163..000000000 --- a/config/sets/symfony/symfony5/symfony50/symfony50-console.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Console\Application', 'renderException', 'renderThrowable'), - new MethodCallRename('Symfony\Component\Console\Application', 'doRenderException', 'doRenderThrowable'), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony50/symfony50-debug.php b/config/sets/symfony/symfony5/symfony50/symfony50-debug.php deleted file mode 100644 index 9e4dbab1b..000000000 --- a/config/sets/symfony/symfony5/symfony50/symfony50-debug.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Debug\Debug' => 'Symfony\Component\ErrorHandler\Debug', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51.php b/config/sets/symfony/symfony5/symfony51.php deleted file mode 100644 index 922089a96..000000000 --- a/config/sets/symfony/symfony5/symfony51.php +++ /dev/null @@ -1,20 +0,0 @@ -import(__DIR__ . '/symfony51/symfony51-config.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-console.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-event-dispatcher.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-form.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-framework-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-inflector.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-notifier.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony51/symfony51-security-http.php'); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-config.php b/config/sets/symfony/symfony5/symfony51/symfony51-config.php deleted file mode 100644 index d306f643c..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-config.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\Config\Definition\BaseNode', - 'getDeprecationMessage', - 'getDeprecation' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-console.php b/config/sets/symfony/symfony5/symfony51/symfony51-console.php deleted file mode 100644 index 06dd69045..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-console.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // @see https://symfony.com/blog/new-in-symfony-5-1-misc-improvements-part-1#added-constants-for-command-exit-codes - CommandConstantReturnCodeRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-dependency-injection.php b/config/sets/symfony/symfony5/symfony51/symfony51-dependency-injection.php deleted file mode 100644 index e531f7ffc..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-dependency-injection.php +++ /dev/null @@ -1,28 +0,0 @@ -ruleWithConfiguration(RenameFunctionRector::class, [ - 'Symfony\Component\DependencyInjection\Loader\Configurator\inline' => 'Symfony\Component\DependencyInjection\Loader\Configurator\inline_service', - 'Symfony\Component\DependencyInjection\Loader\Configurator\ref' => 'Symfony\Component\DependencyInjection\Loader\Configurator\service', - ]); - - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\DependencyInjection\Definition', - 'getDeprecationMessage', - 'getDeprecation' - ), - new MethodCallRename( - 'Symfony\Component\DependencyInjection\Alias', - 'getDeprecationMessage', - 'getDeprecation' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-event-dispatcher.php b/config/sets/symfony/symfony5/symfony51/symfony51-event-dispatcher.php deleted file mode 100644 index a904f727b..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-event-dispatcher.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy' => 'Symfony\Component\EventDispatcher\EventDispatcherInterface', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-form.php b/config/sets/symfony/symfony5/symfony51/symfony51-form.php deleted file mode 100644 index b275a467a..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-form.php +++ /dev/null @@ -1,59 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Form\Extension\Validator\Util\ServerParams' => 'Symfony\Component\Form\Util\ServerParams', - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [ - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_FLOOR', - 'NumberFormatter', - 'ROUND_FLOOR' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_DOWN', - 'NumberFormatter', - 'ROUND_DOWN' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_HALF_DOWN', - 'NumberFormatter', - 'ROUND_HALFDOWN' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_HALF_EVEN', - 'NumberFormatter', - 'ROUND_HALFEVEN' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_HALFUP', - 'NumberFormatter', - 'ROUND_HALFUP' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_UP', - 'NumberFormatter', - 'ROUND_UP' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer', - 'ROUND_CEILING', - 'NumberFormatter', - 'ROUND_CEILING' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-framework-bundle.php b/config/sets/symfony/symfony5/symfony51/symfony51-framework-bundle.php deleted file mode 100644 index 6445ce3c6..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-framework-bundle.php +++ /dev/null @@ -1,23 +0,0 @@ -rules([RouteCollectionBuilderToRoutingConfiguratorRector::class]); - - // @see https://github.com/symfony/symfony/pull/36943 - $rectorConfig->ruleWithConfiguration(AddParamTypeDeclarationRector::class, [ - new AddParamTypeDeclaration( - 'Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait', - 'configureRoutes', - 0, - new ObjectType('Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator') - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-http-foundation.php b/config/sets/symfony/symfony5/symfony51/symfony51-http-foundation.php deleted file mode 100644 index 37a651e17..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-http-foundation.php +++ /dev/null @@ -1,41 +0,0 @@ -ruleWithConfiguration(StaticCallToNewRector::class, [ - new StaticCallToNew('Symfony\Component\HttpFoundation\Response', 'create'), - new StaticCallToNew('Symfony\Component\HttpFoundation\JsonResponse', 'create'), - new StaticCallToNew('Symfony\Component\HttpFoundation\RedirectResponse', 'create'), - new StaticCallToNew('Symfony\Component\HttpFoundation\StreamedResponse', 'create'), - ]); - $rectorConfig->ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - 'withSameSite', - 0, - 'none', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_NONE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - 'withSameSite', - 0, - 'lax', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_LAX' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\HttpFoundation\Cookie', - 'withSameSite', - 0, - 'strict', - 'Symfony\Component\HttpFoundation\Cookie::SAMESITE_STRICT' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-inflector.php b/config/sets/symfony/symfony5/symfony51/symfony51-inflector.php deleted file mode 100644 index 625d778cc..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-inflector.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/35092 - 'Symfony\Component\Inflector' => 'Symfony\Component\String\Inflector\InflectorInterface', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-notifier.php b/config/sets/symfony/symfony5/symfony51/symfony51-notifier.php deleted file mode 100644 index 47486ab63..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-notifier.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // @see https://github.com/symfony/symfony/pull/35828 - new MethodCallRename('Symfony\Component\Notifier\Bridge\Slack\Slack', 'channel', 'recipient'), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-security-core.php b/config/sets/symfony/symfony5/symfony51/symfony51-security-core.php deleted file mode 100644 index 0ccf58c09..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-security-core.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameStringRector::class, [ - // @see https://github.com/symfony/symfony/pull/35858 - 'ROLE_PREVIOUS_ADMIN' => 'IS_IMPERSONATOR', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony51/symfony51-security-http.php b/config/sets/symfony/symfony5/symfony51/symfony51-security-http.php deleted file mode 100644 index b21ee7103..000000000 --- a/config/sets/symfony/symfony5/symfony51/symfony51-security-http.php +++ /dev/null @@ -1,15 +0,0 @@ -rules([ - // @see https://github.com/symfony/symfony/pull/36243 - LogoutHandlerToLogoutEventSubscriberRector::class, - LogoutSuccessHandlerToLogoutEventSubscriberRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52.php b/config/sets/symfony/symfony5/symfony52.php deleted file mode 100644 index f5ccb00ba..000000000 --- a/config/sets/symfony/symfony5/symfony52.php +++ /dev/null @@ -1,23 +0,0 @@ -sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); - - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-form.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-mime.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-notifier.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-property-access.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-property-info.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-security-http.php'); - $rectorConfig->import(__DIR__ . '/symfony52/symfony52-validator.php'); - -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-dependency-injection.php b/config/sets/symfony/symfony5/symfony52/symfony52-dependency-injection.php deleted file mode 100644 index 3cd62181a..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-dependency-injection.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#dependencyinjection - DefinitionAliasSetPrivateToSetPublicRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-form.php b/config/sets/symfony/symfony5/symfony52/symfony52-form.php deleted file mode 100644 index bd8549294..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-form.php +++ /dev/null @@ -1,12 +0,0 @@ -rules([PropertyPathMapperToDataMapperRector::class, FormBuilderSetDataMapperRector::class]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-http-foundation.php b/config/sets/symfony/symfony5/symfony52/symfony52-http-foundation.php deleted file mode 100644 index 26029db43..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-http-foundation.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#httpfoundation - BinaryFileResponseCreateToNewInstanceRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-mime.php b/config/sets/symfony/symfony5/symfony52/symfony52-mime.php deleted file mode 100644 index 5cea71101..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-mime.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#mime - new MethodCallRename('Symfony\Component\Mime\Address', 'fromString', 'create'), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-notifier.php b/config/sets/symfony/symfony5/symfony52/symfony52-notifier.php deleted file mode 100644 index cbba35ebb..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-notifier.php +++ /dev/null @@ -1,56 +0,0 @@ -ruleWithConfiguration(AddParamTypeDeclarationRector::class, [ - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\NotifierInterface', - 'send', - 1, - new ObjectType('Symfony\Component\Notifier\Recipient\RecipientInterface') - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\Notifier', - 'getChannels', - 1, - new ObjectType('Symfony\Component\Notifier\Recipient\RecipientInterface') - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\Channel\ChannelInterface', - 'notify', - 1, - new ObjectType('Symfony\Component\Notifier\Recipient\RecipientInterface') - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\Channel\ChannelInterface', - 'supports', - 1, - new ObjectType('Symfony\Component\Notifier\Recipient\RecipientInterface') - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\Notification\ChatNotificationInterface', - 'asChatMessage', - 0, - new ObjectType('Symfony\Component\Notifier\Recipient\RecipientInterface') - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\Notification\EmailNotificationInterface', - 'asEmailMessage', - 0, - new ObjectType('Symfony\Component\Notifier\Recipient\EmailRecipientInterface') - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Notifier\Notification\SmsNotificationInterface', - 'asSmsMessage', - 0, - new ObjectType('Symfony\Component\Notifier\Recipient\SmsRecipientInterface') - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-property-access.php b/config/sets/symfony/symfony5/symfony52/symfony52-property-access.php deleted file mode 100644 index d4d50c694..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-property-access.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#propertyaccess - PropertyAccessorCreationBooleanToFlagsRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-property-info.php b/config/sets/symfony/symfony5/symfony52/symfony52-property-info.php deleted file mode 100644 index 11f3c5645..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-property-info.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#propertyinfo - ReflectionExtractorEnableMagicCallExtractorRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-security-core.php b/config/sets/symfony/symfony5/symfony52/symfony52-security-core.php deleted file mode 100644 index 82a2c9fa7..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-security-core.php +++ /dev/null @@ -1,53 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken', - 'setProviderKey', - 'setFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken', - 'getProviderKey', - 'getFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\RememberMeToken', - 'setProviderKey', - 'setFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\RememberMeToken', - 'getProviderKey', - 'getFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken', - 'setProviderKey', - 'setFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken', - 'getProviderKey', - 'getFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken', - 'setProviderKey', - 'setFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken', - 'getProviderKey', - 'getFirewallName' - ), - ]); - -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-security-http.php b/config/sets/symfony/symfony5/symfony52/symfony52-security-http.php deleted file mode 100644 index 941013328..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-security-http.php +++ /dev/null @@ -1,45 +0,0 @@ -ruleWithConfiguration(RenameClassConstFetchRector::class, [ - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Http\Firewall\AccessListener', - 'PUBLIC_ACCESS', - 'Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter', - 'PUBLIC_ACCESS' - ), - ]); - - # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#security - $rectorConfig->ruleWithConfiguration(RenamePropertyRector::class, [ - new RenameProperty( - 'Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices', - 'providerKey', - 'firewallName' - ), - ]); - - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler', - 'setProviderKey', - 'setFirewallName' - ), - new MethodCallRename( - 'Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler', - 'getProviderKey', - 'getFirewallName' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony52/symfony52-validator.php b/config/sets/symfony/symfony5/symfony52/symfony52-validator.php deleted file mode 100644 index 3d0c98c49..000000000 --- a/config/sets/symfony/symfony5/symfony52/symfony52-validator.php +++ /dev/null @@ -1,30 +0,0 @@ -rules([ - # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#validator - ValidatorBuilderEnableAnnotationMappingRector::class, - ]); - - // Symfony\Component\Validator\Constraints\Email::VALIDATION_MODE_* added in Symfony 4.1 - // When using PHP 8 attributes (available from Symfony 5.2 set), map string modes to constants - $rectorConfig->ruleWithConfiguration(AttributeKeyToClassConstFetchRector::class, [ - new AttributeKeyToClassConstFetch( - 'Symfony\\Component\\Validator\\Constraints\\Email', - 'mode', - 'Symfony\\Component\\Validator\\Constraints\\Email', - [ - 'strict' => 'VALIDATION_MODE_STRICT', - 'loose' => 'VALIDATION_MODE_LOOSE', - 'html5' => 'VALIDATION_MODE_HTML5', - ] - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony53.php b/config/sets/symfony/symfony5/symfony53.php deleted file mode 100644 index b54037e56..000000000 --- a/config/sets/symfony/symfony5/symfony53.php +++ /dev/null @@ -1,19 +0,0 @@ -sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); - - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-console.php'); - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-mailer.php'); - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-form.php'); - $rectorConfig->import(__DIR__ . '/symfony53/symfony53-framework-bundle.php'); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-console.php b/config/sets/symfony/symfony5/symfony53/symfony53-console.php deleted file mode 100644 index 0485b22ca..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-console.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Console\Helper\Helper', 'strlen', 'width'), - new MethodCallRename( - 'Symfony\Component\Console\Helper\Helper', - 'strlenWithoutDecoration', - 'removeDecoration', - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-form.php b/config/sets/symfony/symfony5/symfony53/symfony53-form.php deleted file mode 100644 index 107ed88f5..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-form.php +++ /dev/null @@ -1,27 +0,0 @@ -ruleWithConfiguration(AddParamTypeDeclarationRector::class, [ - // @see https://github.com/symfony/symfony/commit/ce77be2507631cd12e4ca37510dab37f4c2b759a - new AddParamTypeDeclaration( - 'Symfony\Component\Form\DataMapperInterface', - 'mapFormsToData', - 0, - new ObjectType(Traversable::class) - ), - // @see https://github.com/symfony/symfony/commit/ce77be2507631cd12e4ca37510dab37f4c2b759a - new AddParamTypeDeclaration( - 'Symfony\Component\Form\DataMapperInterface', - 'mapDataToForms', - 1, - new ObjectType(Traversable::class) - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-framework-bundle.php b/config/sets/symfony/symfony5/symfony53/symfony53-framework-bundle.php deleted file mode 100644 index 989cb52d0..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-framework-bundle.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([KernelTestCaseContainerPropertyDeprecationRector::class]); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-http-foundation.php b/config/sets/symfony/symfony5/symfony53/symfony53-http-foundation.php deleted file mode 100644 index fcbc160f1..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-http-foundation.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // @see https://github.com/symfony/symfony/pull/40536 - new MethodCallRename( - 'Symfony\Component\HttpFoundation\RequestStack', - 'getMasterRequest', - 'getMainRequest', - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-http-kernel.php b/config/sets/symfony/symfony5/symfony53/symfony53-http-kernel.php deleted file mode 100644 index 89630fc7e..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-http-kernel.php +++ /dev/null @@ -1,25 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\HttpKernel\Event\KernelEvent', 'isMasterRequest', 'isMainRequest'), - ]); - - // rename constant - $rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [ - // @see https://github.com/symfony/symfony/pull/40536 - new RenameClassConstFetch( - 'Symfony\Component\HttpKernel\HttpKernelInterface', - 'MASTER_REQUEST', - 'MAIN_REQUEST' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-mailer.php b/config/sets/symfony/symfony5/symfony53/symfony53-mailer.php deleted file mode 100644 index 012924418..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-mailer.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Mailer\Transport\AbstractTransportFactory', - 'getEndpoint', - new StringType(), - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony53/symfony53-security-core.php b/config/sets/symfony/symfony5/symfony53/symfony53-security-core.php deleted file mode 100644 index 8fa47ded5..000000000 --- a/config/sets/symfony/symfony5/symfony53/symfony53-security-core.php +++ /dev/null @@ -1,49 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\Token\TokenInterface', - 'getUsername', - 'getUserIdentifier', - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Exception\UsernameNotFoundException', - 'getUsername', - 'getUserIdentifier' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Exception\UsernameNotFoundException', - 'setUsername', - 'setUserIdentifier' - ), - new MethodCallRename( - 'Symfony\Component\Security\Core\Authentication\RememberMe\PersistentTokenInterface', - 'getUsername', - 'getUserIdentifier' - ), - ]); - - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Security\Core\Exception\UsernameNotFoundException' => 'Symfony\Component\Security\Core\Exception\UserNotFoundException', - // @see https://github.com/symfony/symfony/pull/39802 - 'Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface' => 'Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface', - 'Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\MessageDigestPasswordHasher', - 'Symfony\Component\Security\Core\Encoder\MigratingPasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\MigratingPasswordHasher', - 'Symfony\Component\Security\Core\Encoder\NativePasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher', - 'Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface' => 'Symfony\Component\PasswordHasher\PasswordHasherInterface', - 'Symfony\Component\Security\Core\Encoder\Pbkdf2PasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\Pbkdf2PasswordHasher', - 'Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\PlaintextPasswordHasher', - 'Symfony\Component\Security\Core\Encoder\SelfSaltingEncoderInterface' => 'Symfony\Component\PasswordHasher\LegacyPasswordHasherInterface', - 'Symfony\Component\Security\Core\Encoder\SodiumPasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\SodiumPasswordHasher', - 'Symfony\Component\Security\Core\Encoder\UserPasswordEncoder' => 'Symfony\Component\PasswordHasher\Hasher\UserPasswordHasher', - 'Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface' => 'Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54.php b/config/sets/symfony/symfony5/symfony54.php deleted file mode 100644 index 4f551ce25..000000000 --- a/config/sets/symfony/symfony5/symfony54.php +++ /dev/null @@ -1,19 +0,0 @@ -sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); - - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-validator.php'); - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-security-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-security-http.php'); - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-cache.php'); - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony54/symfony54-notifier.php'); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-cache.php b/config/sets/symfony/symfony5/symfony54/symfony54-cache.php deleted file mode 100644 index fbdfcd429..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-cache.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/42965 - 'Symfony\Component\Cache\Adapter\DoctrineAdapter' => 'Doctrine\Common\Cache\Psr6\CacheAdapter', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-http-kernel.php b/config/sets/symfony/symfony5/symfony54/symfony54-http-kernel.php deleted file mode 100644 index 40b2318f1..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-http-kernel.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/45615 - 'Symfony\Component\HttpKernel\EventListener\AbstractTestSessionListener' => 'Symfony\Component\HttpKernel\EventListener\AbstractSessionListener', - 'Symfony\Component\HttpKernel\EventListener\TestSessionListener' => 'Symfony\Component\HttpKernel\EventListener\SessionListener', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-notifier.php b/config/sets/symfony/symfony5/symfony54/symfony54-notifier.php deleted file mode 100644 index aeee6b818..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-notifier.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/44271 - 'Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory' => 'Symfony\Component\Notifier\Bridge\Vonage\VonageTransportFactory', - 'Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransport' => 'Symfony\Component\Notifier\Bridge\Vonage\VonageTransport', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-security-bundle.php b/config/sets/symfony/symfony5/symfony54/symfony54-security-bundle.php deleted file mode 100644 index ac917b7be..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-security-bundle.php +++ /dev/null @@ -1,24 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // @see https://github.com/symfony/symfony/pull/42582 - new MethodCallRename( - 'Symfony\Bundle\SecurityBundle\Security\FirewallConfig', - 'getListeners', - 'getAuthenticators' - ), - // @see https://github.com/symfony/symfony/pull/41754 - new MethodCallRename( - 'Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension', - 'addSecurityListenerFactory', - 'addAuthenticatorFactory' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-security-core.php b/config/sets/symfony/symfony5/symfony54/symfony54-security-core.php deleted file mode 100644 index f94478740..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-security-core.php +++ /dev/null @@ -1,36 +0,0 @@ -ruleWithConfiguration(RenameClassConstFetchRector::class, [ - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Core\AuthenticationEvents', - 'AUTHENTICATION_SUCCESS', - 'Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent', - 'class' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Core\AuthenticationEvents', - 'AUTHENTICATION_FAILURE', - 'Symfony\Component\Security\Core\Event\AuthenticationFailureEvent', - 'class' - ), - // @see https://github.com/symfony/symfony/pull/42510 - new RenameClassConstFetch( - 'Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter', - 'IS_ANONYMOUS', - 'PUBLIC_ACCESS' - ), - new RenameClassConstFetch( - 'Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter', - 'IS_AUTHENTICATED_ANONYMOUSLY', - 'PUBLIC_ACCESS' - ), - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-security-http.php b/config/sets/symfony/symfony5/symfony54/symfony54-security-http.php deleted file mode 100644 index 855374334..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-security-http.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/42050 - 'Symfony\Component\Security\Http\Event\DeauthenticatedEvent' => 'Symfony\Component\Security\Http\Event\TokenDeauthenticatedEvent', - ]); -}; diff --git a/config/sets/symfony/symfony5/symfony54/symfony54-validator.php b/config/sets/symfony/symfony5/symfony54/symfony54-validator.php deleted file mode 100644 index f3a446e36..000000000 --- a/config/sets/symfony/symfony5/symfony54/symfony54-validator.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(AnnotationToAttributeRector::class, [ - new AnnotationToAttribute('Symfony\Component\Validator\Constraints\All'), - new AnnotationToAttribute('Symfony\Component\Validator\Constraints\Collection'), - new AnnotationToAttribute('Symfony\Component\Validator\Constraints\AtLeastOneOf'), - new AnnotationToAttribute('Symfony\Component\Validator\Constraints\Sequentially'), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60.php b/config/sets/symfony/symfony6/symfony60.php deleted file mode 100644 index 5f71659a0..000000000 --- a/config/sets/symfony/symfony6/symfony60.php +++ /dev/null @@ -1,33 +0,0 @@ -sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); - - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-serializer.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-security-http.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-console.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-browser-kit.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-validator.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-form.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-translation.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-property-access.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-property-info.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-routing.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-templating.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-event-dispatcher.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-expression-language.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-options-resolver.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-contracts.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-config.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-framework-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-doctrine-bridge.php'); - $rectorConfig->import(__DIR__ . '/symfony60/symfony60-security-core.php'); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-browser-kit.php b/config/sets/symfony/symfony6/symfony60/symfony60-browser-kit.php deleted file mode 100644 index ec6fde0c9..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-browser-kit.php +++ /dev/null @@ -1,38 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\BrowserKit\AbstractBrowser', - 'doRequestInProcess', - new ObjectWithoutClassType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\BrowserKit\AbstractBrowser', - 'doRequest', - new ObjectWithoutClassType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\BrowserKit\AbstractBrowser', - 'filterRequest', - new ObjectWithoutClassType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\BrowserKit\AbstractBrowser', - 'filterResponse', - $browserKitResponseType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-config.php b/config/sets/symfony/symfony6/symfony60/symfony60-config.php deleted file mode 100644 index dbda13770..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-config.php +++ /dev/null @@ -1,75 +0,0 @@ -ruleWithConfiguration(AddParamTypeDeclarationRector::class, [ - new AddParamTypeDeclaration( - 'Symfony\Component\Config\Loader\LoaderInterface', - 'load', - 0, - new MixedType(true) - ), - new AddParamTypeDeclaration( - 'Symfony\Component\Config\Loader\LoaderInterface', - 'supports', - 0, - new MixedType(true) - ), - ]); - - $arrayType = new ArrayType(new MixedType(), new MixedType()); - - $rectorConfig->ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration('Symfony\Component\Config\Loader\LoaderInterface', 'load', new MixedType()), - new AddReturnTypeDeclaration('Symfony\Component\Config\Loader\Loader', 'import', new MixedType()), - new AddReturnTypeDeclaration( - 'Symfony\Component\Config\Definition\ConfigurationInterface', - 'getConfigTreeBuilder', - new ObjectType('Symfony\Component\Config\Definition\Builder\TreeBuilder') - ), - new AddReturnTypeDeclaration('Symfony\Component\Config\FileLocator', 'locate', new UnionType([ - new StringType(), - $arrayType, - ])), - new AddReturnTypeDeclaration('Symfony\Component\Config\FileLocatorInterface', 'locate', new UnionType([ - new StringType(), - $arrayType, - ])), - new AddReturnTypeDeclaration('Symfony\Component\Config\Loader\FileLoader', 'import', new MixedType()), - new AddReturnTypeDeclaration('Symfony\Component\Config\Loader\Loader', 'import', new MixedType()), - new AddReturnTypeDeclaration('Symfony\Component\Config\Loader\LoaderInterface', 'load', new MixedType()), - new AddReturnTypeDeclaration( - 'Symfony\Component\Config\Loader\LoaderInterface', - 'supports', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Config\Loader\LoaderInterface', - 'getResolver', - new ObjectType('Symfony\Component\Config\Loader\LoaderResolverInterface') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Config\ResourceCheckerInterface', - 'supports', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Config\ResourceCheckerInterface', - 'isFresh', - new BooleanType() - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-console.php b/config/sets/symfony/symfony6/symfony60/symfony60-console.php deleted file mode 100644 index a34619fd1..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-console.php +++ /dev/null @@ -1,65 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - // @see https://github.com/symfony/symfony/pull/43028/files - new AddReturnTypeDeclaration( - 'Symfony\Component\Console\Helper\HelperInterface', - 'getName', - new StringType() - ), - - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'doRun', new IntegerType()), - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'getLongVersion', new StringType()), - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'add', new UnionType([ - new NullType(), - $commandType, - ])), - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'get', $commandType), - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'find', $commandType), - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'all', $arrayType), - new AddReturnTypeDeclaration('Symfony\Component\Console\Application', 'doRunCommand', new IntegerType()), - new AddReturnTypeDeclaration('Symfony\Component\Console\Command\Command', 'isEnabled', new BooleanType()), - new AddReturnTypeDeclaration('Symfony\Component\Console\Command\Command', 'execute', new IntegerType()), - new AddReturnTypeDeclaration( - 'Symfony\Component\Console\Helper\HelperInterface', - 'getName', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Console\Input\InputInterface', - 'getParameterOption', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Console\Input\InputInterface', - 'getArgument', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Console\Input\InputInterface', - 'getOption', - new MixedType() - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-contracts.php b/config/sets/symfony/symfony6/symfony60/symfony60-contracts.php deleted file mode 100644 index 26318e476..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-contracts.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/39484 - 'Symfony\Contracts\HttpClient\HttpClientInterface\RemoteJsonManifestVersionStrategy' => 'Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy', - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-dependency-injection.php b/config/sets/symfony/symfony6/symfony60/symfony60-dependency-injection.php deleted file mode 100644 index 45a25147d..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-dependency-injection.php +++ /dev/null @@ -1,93 +0,0 @@ -rule(ContainerInterfaceServiceToServiceContainerRector::class); - - $configurationType = new ObjectType('Symfony\Component\Config\Definition\ConfigurationInterface'); - - $arrayType = new ArrayType(new MixedType(), new MixedType()); - $scalarTypes = [ - $arrayType, - new BooleanType(), - new StringType(), - new IntegerType(), - new FloatType(), - new NullType(), - ]; - - $rectorConfig->ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass', - 'processValue', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\ConfigurationExtensionInterface', - 'getConfiguration', - new UnionType([new NullType(), $configurationType]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\Extension', - 'getXsdValidationBasePath', - new UnionType([new StringType(), new ConstantBooleanType(false)]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\Extension', - 'getNamespace', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\Extension', - 'getConfiguration', - new UnionType([new NullType(), $configurationType]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\ExtensionInterface', - 'getNamespace', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\ExtensionInterface', - 'getXsdValidationBasePath', - new UnionType([new StringType(), new ConstantBooleanType(false)]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Extension\ExtensionInterface', - 'getAlias', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\LazyProxy\Instantiator\InstantiatorInterface', - 'instantiateProxy', - new ObjectWithoutClassType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\Container', - 'getParameter', - new UnionType($scalarTypes) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\DependencyInjection\ContainerInterface', - 'getParameter', - new UnionType($scalarTypes) - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-doctrine-bridge.php b/config/sets/symfony/symfony6/symfony60/symfony60-doctrine-bridge.php deleted file mode 100644 index 6172ca0bf..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-doctrine-bridge.php +++ /dev/null @@ -1,20 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // @see https://github.com/symfony/symfony/pull/40403 - new MethodCallRename( - 'Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface', - 'loadUserByUsername', - 'loadUserByIdentifier' - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-event-dispatcher.php b/config/sets/symfony/symfony6/symfony60/symfony60-event-dispatcher.php deleted file mode 100644 index e44144aca..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-event-dispatcher.php +++ /dev/null @@ -1,24 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\EventDispatcher\EventSubscriberInterface', - 'getSubscribedEvents', - $arrayType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-expression-language.php b/config/sets/symfony/symfony6/symfony60/symfony60-expression-language.php deleted file mode 100644 index 6ef58ad27..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-expression-language.php +++ /dev/null @@ -1,24 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface', - 'getFunctions', - $arrayType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-form.php b/config/sets/symfony/symfony6/symfony60/symfony60-form.php deleted file mode 100644 index 21c887093..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-form.php +++ /dev/null @@ -1,88 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration('Symfony\Component\Form\AbstractExtension', 'loadTypes', $arrayType), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\AbstractExtension', - 'loadTypeGuesser', - new UnionType([new NullType(), new ObjectType('Symfony\Component\Form\FormTypeGuesserInterface')]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\AbstractRendererEngine', - 'loadResourceForBlockName', - new BooleanType() - ), - new AddReturnTypeDeclaration('Symfony\Component\Form\AbstractType', 'getBlockPrefix', new StringType()), - new AddReturnTypeDeclaration('Symfony\Component\Form\AbstractType', 'getParent', $nullableStringType), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\DataTransformerInterface', - 'transform', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\DataTransformerInterface', - 'reverseTransform', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\FormRendererEngineInterface', - 'renderBlock', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\FormTypeGuesserInterface', - 'guessType', - new UnionType([new NullType(), $typeGuessType]), - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\FormTypeGuesserInterface', - 'guessRequired', - $nullableValueGuessType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\FormTypeGuesserInterface', - 'guessMaxLength', - $nullableValueGuessType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\FormTypeGuesserInterface', - 'guessPattern', - $nullableValueGuessType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\FormTypeInterface', - 'getBlockPrefix', - new StringType() - ), - new AddReturnTypeDeclaration('Symfony\Component\Form\FormTypeInterface', 'getParent', $nullableStringType), - new AddReturnTypeDeclaration('Symfony\Component\Form\FormTypeInterface', 'buildForm', new VoidType()), - new AddReturnTypeDeclaration('Symfony\Component\Form\FormTypeInterface', 'configureOptions', new VoidType()), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-framework-bundle.php b/config/sets/symfony/symfony6/symfony60/symfony60-framework-bundle.php deleted file mode 100644 index a39bf2101..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-framework-bundle.php +++ /dev/null @@ -1,21 +0,0 @@ -ruleWithConfiguration(AddParamTypeDeclarationRector::class, [ - new AddParamTypeDeclaration( - 'Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait', - 'configureRoutes', - 0, - new ObjectType('Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator'), - ), - ]); - $rectorConfig->rule(GetHelperControllerToServiceRector::class); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-http-kernel.php b/config/sets/symfony/symfony6/symfony60/symfony60-http-kernel.php deleted file mode 100644 index e60bbeee7..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-http-kernel.php +++ /dev/null @@ -1,76 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\KernelInterface', - 'registerBundles', - $iterableType, - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface', - 'isOptional', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface', - 'warmUp', - $arrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\DataCollector\DataCollector', - 'getCasters', - $arrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface', - 'getName', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\HttpCache\HttpCache', - 'forward', - $httpFoundationResponseType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\HttpKernelBrowser', - 'doRequest', - $httpFoundationResponseType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\HttpKernelBrowser', - 'getScript', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\Log\DebugLoggerInterface', - 'getLogs', - $arrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\HttpKernel\Log\DebugLoggerInterface', - 'countErrors', - new IntegerType() - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-options-resolver.php b/config/sets/symfony/symfony6/symfony60/symfony60-options-resolver.php deleted file mode 100644 index a8642d0cc..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-options-resolver.php +++ /dev/null @@ -1,41 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\OptionsResolver\OptionsResolver', - 'setNormalizer', - new SimpleStaticType('Symfony\Component\OptionsResolver\OptionsResolver') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\OptionsResolver\OptionsResolver', - 'setAllowedValues', - new SimpleStaticType('Symfony\Component\OptionsResolver\OptionsResolver') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\OptionsResolver\OptionsResolver', - 'addAllowedValues', - new SimpleStaticType('Symfony\Component\OptionsResolver\OptionsResolver') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\OptionsResolver\OptionsResolver', - 'setAllowedTypes', - new SimpleStaticType('Symfony\Component\OptionsResolver\OptionsResolver') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\OptionsResolver\OptionsResolver', - 'addAllowedTypes', - new SimpleStaticType('Symfony\Component\OptionsResolver\OptionsResolver') - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-property-access.php b/config/sets/symfony/symfony6/symfony60/symfony60-property-access.php deleted file mode 100644 index a915ee7e6..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-property-access.php +++ /dev/null @@ -1,58 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyAccess\PropertyPathInterface', - 'getLength', - new IntegerType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyAccess\PropertyPathInterface', - 'getParent', - new UnionType([ - new NullType(), - new ObjectType('Symfony\Component\PropertyAccess\PropertyPathInterface'), - ]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyAccess\PropertyPathInterface', - 'getElements', - $arrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyAccess\PropertyPathInterface', - 'getElement', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyAccess\PropertyPathInterface', - 'isProperty', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyAccess\PropertyPathInterface', - 'isIndex', - new BooleanType() - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-property-info.php b/config/sets/symfony/symfony6/symfony60/symfony60-property-info.php deleted file mode 100644 index 48fb6d660..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-property-info.php +++ /dev/null @@ -1,45 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface', - 'isReadable', - $nullableBooleanType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface', - 'isWritable', - $nullableBooleanType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyInfo\PropertyListExtractorInterface', - 'getProperties', - $nullableArrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface', - 'getTypes', - $nullableArrayType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-routing.php b/config/sets/symfony/symfony6/symfony60/symfony60-routing.php deleted file mode 100644 index 7459c6249..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-routing.php +++ /dev/null @@ -1,34 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Routing\Loader\AnnotationClassLoader', - 'getDefaultRouteName', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Routing\Router', - 'getRouteCollection', - $routeCollectionType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Routing\RouterInterface', - 'getRouteCollection', - $routeCollectionType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-security-core.php b/config/sets/symfony/symfony6/symfony60/symfony60-security-core.php deleted file mode 100644 index 80cde8631..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-security-core.php +++ /dev/null @@ -1,66 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\Security\Core\User\UserProviderInterface', - 'loadUserByUsername', - 'loadUserByIdentifier', - ), - // @see https://github.com/rectorphp/rector-symfony/issues/112 - new MethodCallRename( - 'Symfony\Component\Security\Core\User\UserInterface', - 'getUsername', - 'getUserIdentifier', - ), - ]); - - $rectorConfig->ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - // @see https://wouterj.nl/2021/09/symfony-6-native-typing#when-upgrading-to-symfony-54 - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Core\User\UserInterface', - 'getRoles', - new ArrayType(new MixedType(), new MixedType()) - ), - - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface', - 'loadTokenBySeries', - new ObjectType('Symfony\Component\Security\Core\Authentication\RememberMe\PersistentTokenInterface') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Core\Authorization\Voter\VoterInterface', - 'vote', - new IntegerType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Core\Exception\AuthenticationException', - 'getMessageKey', - new StringType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Core\User\UserProviderInterface', - 'refreshUser', - new ObjectType('Symfony\Component\Security\Core\User\UserInterface') - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Core\User\UserProviderInterface', - 'supportsClass', - new BooleanType() - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-security-http.php b/config/sets/symfony/symfony6/symfony60/symfony60-security-http.php deleted file mode 100644 index 2433a5782..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-security-http.php +++ /dev/null @@ -1,37 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface', - 'start', - $httpFoundationResponseType - ), - new AddReturnTypeDeclaration('Symfony\Component\Security\Http\Firewall', 'getSubscribedEvents', $arrayType), - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Http\FirewallMapInterface', - 'getListeners', - $arrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface', - 'authenticate', - new ObjectType('Symfony\Component\Security\Http\Authenticator\Passport\Passport') - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-serializer.php b/config/sets/symfony/symfony6/symfony60/symfony60-serializer.php deleted file mode 100644 index 04d615d46..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-serializer.php +++ /dev/null @@ -1,129 +0,0 @@ -newInstanceWithoutConstructor(); - - $privatesAccessor = new PrivatesAccessor(); - $privatesAccessor->setPrivateProperty($scalarArrayObjectUnionType, 'types', $scalarArrayObjectUnionedTypes); - - $rectorConfig->ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Encoder\DecoderInterface', - 'decode', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Encoder\DecoderInterface', - 'supportsDecoding', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractNormalizer', - 'getAllowedAttributes', - new UnionType([$arrayType, new BooleanType()]) - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractNormalizer', - 'isAllowedAttribute', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractNormalizer', - 'instantiateObject', - new ObjectWithoutClassType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'supportsNormalization', - new BooleanType() - ), - - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'instantiateObject', - new ObjectWithoutClassType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'extractAttributes', - $arrayType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'getAttributeValue', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'supportsDenormalization', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'denormalize', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\DenormalizerInterface', - 'denormalize', - new MixedType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\DenormalizerInterface', - 'supportsDenormalization', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\NormalizerInterface', - 'supportsNormalization', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer', - 'normalize', - $scalarArrayObjectUnionType - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Serializer\Normalizer\NormalizerInterface', - 'normalize', - $scalarArrayObjectUnionType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-templating.php b/config/sets/symfony/symfony6/symfony60/symfony60-templating.php deleted file mode 100644 index 2620badb0..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-templating.php +++ /dev/null @@ -1,21 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Templating\Helper\HelperInterface', - 'getName', - new StringType() - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-translation.php b/config/sets/symfony/symfony6/symfony60/symfony60-translation.php deleted file mode 100644 index eec9dcb1a..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-translation.php +++ /dev/null @@ -1,30 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Translation\Extractor\AbstractFileExtractor', - 'canBeExtracted', - new BooleanType() - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Translation\Extractor\AbstractFileExtractor', - 'extractFromDirectory', - $iterableType - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony60/symfony60-validator.php b/config/sets/symfony/symfony6/symfony60/symfony60-validator.php deleted file mode 100644 index a1602ae4e..000000000 --- a/config/sets/symfony/symfony6/symfony60/symfony60-validator.php +++ /dev/null @@ -1,35 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Validator\Constraint', - 'getDefaultOption', - $nullableStringType - ), - new AddReturnTypeDeclaration('Symfony\Component\Validator\Constraint', 'getRequiredOptions', $arrayType), - new AddReturnTypeDeclaration('Symfony\Component\Validator\Constraint', 'validatedBy', new StringType()), - new AddReturnTypeDeclaration( - 'Symfony\Component\Validator\Constraint', - 'getTargets', - new UnionType([new StringType(), $arrayType]) - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony61.php b/config/sets/symfony/symfony6/symfony61.php deleted file mode 100644 index 97c9eac39..000000000 --- a/config/sets/symfony/symfony6/symfony61.php +++ /dev/null @@ -1,14 +0,0 @@ -import(__DIR__ . '/symfony61/symfony61-serializer.php'); - $rectorConfig->import(__DIR__ . '/symfony61/symfony61-validator.php'); - $rectorConfig->import(__DIR__ . '/symfony61/symfony61-console.php'); - $rectorConfig->import(__DIR__ . '/symfony61/symfony61-twig-bridge.php'); -}; diff --git a/config/sets/symfony/symfony6/symfony61/symfony61-console.php b/config/sets/symfony/symfony6/symfony61/symfony61-console.php deleted file mode 100644 index 6030d88bb..000000000 --- a/config/sets/symfony/symfony6/symfony61/symfony61-console.php +++ /dev/null @@ -1,11 +0,0 @@ -rules([CommandConfigureToAttributeRector::class, CommandPropertyToAttributeRector::class]); -}; diff --git a/config/sets/symfony/symfony6/symfony61/symfony61-serializer.php b/config/sets/symfony/symfony6/symfony61/symfony61-serializer.php deleted file mode 100644 index 3ea812002..000000000 --- a/config/sets/symfony/symfony6/symfony61/symfony61-serializer.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/43982 - 'Symfony\Component\Serializer\Normalizer\ContextAwareDenormalizerInterface' => 'Symfony\Component\Serializer\Normalizer\DenormalizerInterface', - 'Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface' => 'Symfony\Component\Serializer\Normalizer\NormalizerInterface', - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony61/symfony61-twig-bridge.php b/config/sets/symfony/symfony6/symfony61/symfony61-twig-bridge.php deleted file mode 100644 index 928fa6cd3..000000000 --- a/config/sets/symfony/symfony6/symfony61/symfony61-twig-bridge.php +++ /dev/null @@ -1,10 +0,0 @@ -rule(MagicClosureTwigExtensionToNativeMethodsRector::class); -}; diff --git a/config/sets/symfony/symfony6/symfony61/symfony61-validator.php b/config/sets/symfony/symfony6/symfony61/symfony61-validator.php deleted file mode 100644 index fb1b39439..000000000 --- a/config/sets/symfony/symfony6/symfony61/symfony61-validator.php +++ /dev/null @@ -1,30 +0,0 @@ -rule(ErrorNamesPropertyToConstantRector::class); - $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/pull/45623 - 'Symfony\Component\Validator\Constraints\ExpressionLanguageSyntax' => 'Symfony\Component\Validator\Constraints\ExpressionSyntax', - 'Symfony\Component\Validator\Constraints\ExpressionLanguageSyntaxValidator' => 'Symfony\Component\Validator\Constraints\ExpressionSyntaxValidator', - ]); - - // @see https://github.com/symfony/validator/blob/6.1/Constraints/Email.php - $rectorConfig->ruleWithConfiguration(AttributeKeyToClassConstFetchRector::class, [ - new AttributeKeyToClassConstFetch( - 'Symfony\\Component\\Validator\\Constraints\\Email', - 'mode', - 'Symfony\\Component\\Validator\\Constraints\\Email', - [ - 'html5-allow-no-tld' => 'VALIDATION_MODE_HTML5_ALLOW_NO_TLD', - ] - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony62.php b/config/sets/symfony/symfony6/symfony62.php deleted file mode 100644 index dbb614ee4..000000000 --- a/config/sets/symfony/symfony6/symfony62.php +++ /dev/null @@ -1,35 +0,0 @@ -ruleWithConfiguration(AnnotationToAttributeRector::class, [ - // @see https://github.com/symfony/symfony/pull/46907 - new AnnotationToAttribute('Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted'), - // @see https://github.com/symfony/symfony/pull/46880 - new AnnotationToAttribute('Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache'), - // @see https://github.com/symfony/symfony/pull/46906 - new AnnotationToAttribute('Sensio\Bundle\FrameworkExtraBundle\Configuration\Template'), - ]); - - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-console.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-security-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-security-http.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-mime.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-http-kernel.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-framework-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-twig-bridge.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-translation.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-doctrine-bridge.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-messenger.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-mail-pace-mailer.php'); - $rectorConfig->import(__DIR__ . '/symfony62/symfony62-validator.php'); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-doctrine-bridge.php b/config/sets/symfony/symfony6/symfony62/symfony62-doctrine-bridge.php deleted file mode 100644 index 9a3f18a73..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-doctrine-bridge.php +++ /dev/null @@ -1,10 +0,0 @@ -rule(ParamConverterAttributeToMapEntityAttributeRector::class); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-framework-bundle.php b/config/sets/symfony/symfony6/symfony62/symfony62-framework-bundle.php deleted file mode 100644 index 728641a5a..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-framework-bundle.php +++ /dev/null @@ -1,21 +0,0 @@ -ruleWithConfiguration( - RenameMethodRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46854 - new MethodCallRename( - 'Symfony\Bundle\FrameworkBundle\Controller\AbstractController', - 'renderForm', - 'render' - ), - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-http-foundation.php b/config/sets/symfony/symfony6/symfony62/symfony62-http-foundation.php deleted file mode 100644 index 30854a409..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-http-foundation.php +++ /dev/null @@ -1,32 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/47595 - 'Symfony\Component\HttpFoundation\ExpressionRequestMatcher' => 'Symfony\Component\HttpFoundation\RequestMatcher\ExpressionRequestMatcher', - 'Symfony\Component\HttpFoundation\RequestMatcher' => 'Symfony\Component\HttpFoundation\ChainRequestMatcher', - ], - ); - - $rectorConfig->ruleWithConfiguration( - RenameMethodRector::class, - [ - // @see https://github.com/symfony/symfony/pull/45034 - new MethodCallRename( - 'Symfony\Component\HttpFoundation\Request', - 'getContentType', - 'getContentTypeFormat' - ), - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-http-kernel.php b/config/sets/symfony/symfony6/symfony62/symfony62-http-kernel.php deleted file mode 100644 index 093805ae1..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-http-kernel.php +++ /dev/null @@ -1,25 +0,0 @@ -rules([ - // @see https://github.com/symfony/symfony/pull/47363 - ArgumentValueResolverToValueResolverRector::class, - ]); - - // https://symfony.com/blog/new-in-symfony-6-2-built-in-cache-security-template-and-doctrine-attributes - $rectorConfig->ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46880 - 'Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache' => 'Symfony\Component\HttpKernel\Attribute\Cache', - // @see https://github.com/symfony/symfony/pull/47363 - 'Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface' => 'Symfony\Component\HttpKernel\Controller\ValueResolverInterface', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-mail-pace-mailer.php b/config/sets/symfony/symfony6/symfony62/symfony62-mail-pace-mailer.php deleted file mode 100644 index 3f9349cbb..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-mail-pace-mailer.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46714 - 'Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpApiTransport' => 'Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceApiTransport', - 'Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpSmtpTransport' => 'Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceSmtpTransport', - 'Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory' => 'Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-messenger.php b/config/sets/symfony/symfony6/symfony62/symfony62-messenger.php deleted file mode 100644 index 55f635c1f..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-messenger.php +++ /dev/null @@ -1,15 +0,0 @@ -rules([ - // @see https://github.com/symfony/symfony/pull/47068, #[AsMessageHandler] attribute - MessageHandlerInterfaceToAttributeRector::class, - MessageSubscriberInterfaceToAttributeRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-mime.php b/config/sets/symfony/symfony6/symfony62/symfony62-mime.php deleted file mode 100644 index 85ec93399..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-mime.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration( - RenameMethodRector::class, - [ - // @see https://github.com/symfony/symfony/pull/47711 - new MethodCallRename('Symfony\Component\Mime\Email', 'attachPart', 'addPart'), - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-security-bundle.php b/config/sets/symfony/symfony6/symfony62/symfony62-security-bundle.php deleted file mode 100644 index 73d1a7a7b..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-security-bundle.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46094 - 'Symfony\Component\Security\Core\Security' => 'Symfony\Bundle\SecurityBundle\Security', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-security-http.php b/config/sets/symfony/symfony6/symfony62/symfony62-security-http.php deleted file mode 100644 index f19b12a76..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-security-http.php +++ /dev/null @@ -1,50 +0,0 @@ -rule(SecurityAttributeToIsGrantedAttributeRector::class); - // https://symfony.com/blog/new-in-symfony-6-2-built-in-cache-security-template-and-doctrine-attributes - $rectorConfig->ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46907 - 'Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted' => 'Symfony\Component\Security\Http\Attribute\IsGranted', - ], - ); - - // @see https://github.com/symfony/symfony/pull/46094 - // @see https://github.com/symfony/symfony/pull/48554 - $rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [ - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Core\Security', - 'ACCESS_DENIED_ERROR', - 'Symfony\Component\Security\Http\SecurityRequestAttributes', - 'ACCESS_DENIED_ERROR' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Core\Security', - 'AUTHENTICATION_ERROR', - 'Symfony\Component\Security\Http\SecurityRequestAttributes', - 'AUTHENTICATION_ERROR' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Core\Security', - 'LAST_USERNAME', - 'Symfony\Component\Security\Http\SecurityRequestAttributes', - 'LAST_USERNAME' - ), - new RenameClassAndConstFetch( - 'Symfony\Component\Security\Core\Security', - 'MAX_USERNAME_LENGTH', - 'Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge', - 'MAX_USERNAME_LENGTH' - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-translation.php b/config/sets/symfony/symfony6/symfony62/symfony62-translation.php deleted file mode 100644 index 6010a7a75..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-translation.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46161 - 'Symfony\Component\Translation\Extractor\PhpAstExtractor' => 'Symfony\Component\Translation\Extractor\PhpAstExtractor', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-twig-bridge.php b/config/sets/symfony/symfony6/symfony62/symfony62-twig-bridge.php deleted file mode 100644 index a27cb35c6..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-twig-bridge.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/pull/46906 - 'Sensio\Bundle\FrameworkExtraBundle\Configuration\Template' => 'Symfony\Bridge\Twig\Attribute\Template', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony62/symfony62-validator.php b/config/sets/symfony/symfony6/symfony62/symfony62-validator.php deleted file mode 100644 index aacf0c588..000000000 --- a/config/sets/symfony/symfony6/symfony62/symfony62-validator.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration(RenameClassConstFetchRector::class, [ - new RenameClassConstFetch( - 'Symfony\\Component\\Validator\\Constraints\\Email', - 'VALIDATION_MODE_LOOSE', - 'VALIDATION_MODE_HTML5' - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony63.php b/config/sets/symfony/symfony6/symfony63.php deleted file mode 100644 index fe48e07a9..000000000 --- a/config/sets/symfony/symfony6/symfony63.php +++ /dev/null @@ -1,15 +0,0 @@ -import(__DIR__ . '/symfony63/symfony63-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony63/symfony63-http-client.php'); - $rectorConfig->import(__DIR__ . '/symfony63/symfony63-messenger.php'); - $rectorConfig->import(__DIR__ . '/symfony63/symfony63-console.php'); - $rectorConfig->import(__DIR__ . '/symfony63/symfony63-web-link.php'); -}; diff --git a/config/sets/symfony/symfony6/symfony63/symfony63-console.php b/config/sets/symfony/symfony6/symfony63/symfony63-console.php deleted file mode 100644 index 28834c50d..000000000 --- a/config/sets/symfony/symfony6/symfony63/symfony63-console.php +++ /dev/null @@ -1,13 +0,0 @@ -rules([ - // @see https://github.com/symfony/symfony/commit/1650e3861b5fcd931e5d3eb1dd84bad764020d8e - SignalableCommandInterfaceReturnTypeRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony63/symfony63-dependency-injection.php b/config/sets/symfony/symfony6/symfony63/symfony63-dependency-injection.php deleted file mode 100644 index 91029da3c..000000000 --- a/config/sets/symfony/symfony6/symfony63/symfony63-dependency-injection.php +++ /dev/null @@ -1,22 +0,0 @@ -rules([ - // @see https://symfony.com/blog/new-in-symfony-6-3-dependency-injection-improvements#new-options-for-autowire-attribute - ParamAndEnvAttributeRector::class, - ]); - - $rectorConfig->ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/commit/b653adf426aedc66d16c5fc1cf71e261f20b9638 - 'Symfony\Component\DependencyInjection\Attribute\MapDecorated' => 'Symfony\Component\DependencyInjection\Attribute\AutowireDecorated', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony63/symfony63-http-client.php b/config/sets/symfony/symfony6/symfony63/symfony63-http-client.php deleted file mode 100644 index ca22adea8..000000000 --- a/config/sets/symfony/symfony6/symfony63/symfony63-http-client.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/commit/20ab567385e3812ef661dae01a1fdc5d1bde2666 - 'Http\Client\HttpClient' => 'Psr\Http\Client\ClientInterface', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony63/symfony63-messenger.php b/config/sets/symfony/symfony6/symfony63/symfony63-messenger.php deleted file mode 100644 index 8486ed970..000000000 --- a/config/sets/symfony/symfony6/symfony63/symfony63-messenger.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - // @see https://github.com/symfony/symfony/commit/9415b438b75204c72ff66b838307b73646393cbf - 'Symfony\Component\Messenger\EventListener\StopWorkerOnSigtermSignalListener' => 'Symfony\Component\Messenger\EventListener\StopWorkerOnSignalsListener', - // @see https://github.com/symfony/symfony/commit/a7926b2d83f35fe53c41a28d8055490cc1955928 - 'Symfony\Component\Messenger\Transport\InMemoryTransport' => 'Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport', - 'Symfony\Component\Messenger\Transport\InMemoryTransportFactory' => 'Symfony\Component\Messenger\Transport\InMemory\InMemoryTransportFactory', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony63/symfony63-web-link.php b/config/sets/symfony/symfony6/symfony63/symfony63-web-link.php deleted file mode 100644 index ace54fdb4..000000000 --- a/config/sets/symfony/symfony6/symfony63/symfony63-web-link.php +++ /dev/null @@ -1,761 +0,0 @@ -ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [ - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'about', - 'Symfony\Component\WebLink\Link::REL_ABOUT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'acl', - 'Symfony\Component\WebLink\Link::REL_ACL' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'amphtml', - 'Symfony\Component\WebLink\Link::REL_AMPHTML' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'appendix', - 'Symfony\Component\WebLink\Link::REL_APPENDIX' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'apple-touch-icon', - 'Symfony\Component\WebLink\Link::REL_APPLE_TOUCH_ICON' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'apple-touch-startup-image', - 'Symfony\Component\WebLink\Link::REL_APPLE_TOUCH_STARTUP_IMAGE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'archives', - 'Symfony\Component\WebLink\Link::REL_ARCHIVES' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'blocked-by', - 'Symfony\Component\WebLink\Link::REL_BLOCKED_BY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'bookmark', - 'Symfony\Component\WebLink\Link::REL_BOOKMARK' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'canonical', - 'Symfony\Component\WebLink\Link::REL_CANONICAL' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'chapter', - 'Symfony\Component\WebLink\Link::REL_CHAPTER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'cite-as', - 'Symfony\Component\WebLink\Link::REL_CITE_AS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'collection', - 'Symfony\Component\WebLink\Link::REL_COLLECTION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'contents', - 'Symfony\Component\WebLink\Link::REL_CONTENTS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'convertedfrom', - 'Symfony\Component\WebLink\Link::REL_CONVERTEDFROM' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'copyright', - 'Symfony\Component\WebLink\Link::REL_COPYRIGHT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'create-form', - 'Symfony\Component\WebLink\Link::REL_CREATE_FORM' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'current', - 'Symfony\Component\WebLink\Link::REL_CURRENT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'describedby', - 'Symfony\Component\WebLink\Link::REL_DESCRIBEDBY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'describes', - 'Symfony\Component\WebLink\Link::REL_DESCRIBES' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'disclosure', - 'Symfony\Component\WebLink\Link::REL_DISCLOSURE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'duplicate', - 'Symfony\Component\WebLink\Link::REL_DUPLICATE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'edit', - 'Symfony\Component\WebLink\Link::REL_EDIT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'edit-form', - 'Symfony\Component\WebLink\Link::REL_EDIT_FORM' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'edit-media', - 'Symfony\Component\WebLink\Link::REL_EDIT_MEDIA' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'enclosure', - 'Symfony\Component\WebLink\Link::REL_ENCLOSURE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'external', - 'Symfony\Component\WebLink\Link::REL_EXTERNAL' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'first', - 'Symfony\Component\WebLink\Link::REL_FIRST' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'glossary', - 'Symfony\Component\WebLink\Link::REL_GLOSSARY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'hosts', - 'Symfony\Component\WebLink\Link::REL_HOSTS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'hub', - 'Symfony\Component\WebLink\Link::REL_HUB' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'index', - 'Symfony\Component\WebLink\Link::REL_INDEX' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalafter', - 'Symfony\Component\WebLink\Link::REL_INTERVALAFTER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalbefore', - 'Symfony\Component\WebLink\Link::REL_INTERVALBEFORE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalcontains', - 'Symfony\Component\WebLink\Link::REL_INTERVALCONTAINS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervaldisjoint', - 'Symfony\Component\WebLink\Link::REL_INTERVALDISJOINT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalduring', - 'Symfony\Component\WebLink\Link::REL_INTERVALDURING' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalequals', - 'Symfony\Component\WebLink\Link::REL_INTERVALEQUALS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalfinishedby', - 'Symfony\Component\WebLink\Link::REL_INTERVALFINISHEDBY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalfinishes', - 'Symfony\Component\WebLink\Link::REL_INTERVALFINISHES' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalin', - 'Symfony\Component\WebLink\Link::REL_INTERVALIN' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalmeets', - 'Symfony\Component\WebLink\Link::REL_INTERVALMEETS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalmetby', - 'Symfony\Component\WebLink\Link::REL_INTERVALMETBY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervaloverlappedby', - 'Symfony\Component\WebLink\Link::REL_INTERVALOVERLAPPEDBY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervaloverlaps', - 'Symfony\Component\WebLink\Link::REL_INTERVALOVERLAPS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalstartedby', - 'Symfony\Component\WebLink\Link::REL_INTERVALSTARTEDBY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'intervalstarts', - 'Symfony\Component\WebLink\Link::REL_INTERVALSTARTS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'item', - 'Symfony\Component\WebLink\Link::REL_ITEM' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'last', - 'Symfony\Component\WebLink\Link::REL_LAST' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'latest-version', - 'Symfony\Component\WebLink\Link::REL_LATEST_VERSION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'linkset', - 'Symfony\Component\WebLink\Link::REL_LINKSET' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'lrdd', - 'Symfony\Component\WebLink\Link::REL_LRDD' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'manifest', - 'Symfony\Component\WebLink\Link::REL_MANIFEST' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'mask-icon', - 'Symfony\Component\WebLink\Link::REL_MASK_ICON' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'media-feed', - 'Symfony\Component\WebLink\Link::REL_MEDIA_FEED' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'memento', - 'Symfony\Component\WebLink\Link::REL_MEMENTO' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'micropub', - 'Symfony\Component\WebLink\Link::REL_MICROPUB' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'modulepreload', - 'Symfony\Component\WebLink\Link::REL_MODULEPRELOAD' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'monitor', - 'Symfony\Component\WebLink\Link::REL_MONITOR' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'monitor-group', - 'Symfony\Component\WebLink\Link::REL_MONITOR_GROUP' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'next-archive', - 'Symfony\Component\WebLink\Link::REL_NEXT_ARCHIVE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'nofollow', - 'Symfony\Component\WebLink\Link::REL_NOFOLLOW' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'noopener', - 'Symfony\Component\WebLink\Link::REL_NOOPENER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'noreferrer', - 'Symfony\Component\WebLink\Link::REL_NOREFERRER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'opener', - 'Symfony\Component\WebLink\Link::REL_OPENER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'openid2.local_id', - 'Symfony\Component\WebLink\Link::REL_OPENID_2_LOCAL_ID' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'openid2.provider', - 'Symfony\Component\WebLink\Link::REL_OPENID_2_PROVIDER' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'original', - 'Symfony\Component\WebLink\Link::REL_ORIGINAL' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'p3pv1', - 'Symfony\Component\WebLink\Link::REL_P_3_PV_1' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'payment', - 'Symfony\Component\WebLink\Link::REL_PAYMENT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'pingback', - 'Symfony\Component\WebLink\Link::REL_PINGBACK' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'predecessor-version', - 'Symfony\Component\WebLink\Link::REL_PREDECESSOR_VERSION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'preview', - 'Symfony\Component\WebLink\Link::REL_PREVIEW' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'previous', - 'Symfony\Component\WebLink\Link::REL_PREVIOUS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'prev-archive', - 'Symfony\Component\WebLink\Link::REL_PREV_ARCHIVE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'privacy-policy', - 'Symfony\Component\WebLink\Link::REL_PRIVACY_POLICY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'profile', - 'Symfony\Component\WebLink\Link::REL_PROFILE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'publication', - 'Symfony\Component\WebLink\Link::REL_PUBLICATION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'related', - 'Symfony\Component\WebLink\Link::REL_RELATED' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'restconf', - 'Symfony\Component\WebLink\Link::REL_RESTCONF' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'replies', - 'Symfony\Component\WebLink\Link::REL_REPLIES' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'ruleinput', - 'Symfony\Component\WebLink\Link::REL_RULEINPUT' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'section', - 'Symfony\Component\WebLink\Link::REL_SECTION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'self', - 'Symfony\Component\WebLink\Link::REL_SELF' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'service', - 'Symfony\Component\WebLink\Link::REL_SERVICE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'service-desc', - 'Symfony\Component\WebLink\Link::REL_SERVICE_DESC' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'service-doc', - 'Symfony\Component\WebLink\Link::REL_SERVICE_DOC' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'service-meta', - 'Symfony\Component\WebLink\Link::REL_SERVICE_META' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'siptrunkingcapability', - 'Symfony\Component\WebLink\Link::REL_SIPTRUNKINGCAPABILITY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'sponsored', - 'Symfony\Component\WebLink\Link::REL_SPONSORED' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'start', - 'Symfony\Component\WebLink\Link::REL_START' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'status', - 'Symfony\Component\WebLink\Link::REL_STATUS' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'subsection', - 'Symfony\Component\WebLink\Link::REL_SUBSECTION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'successor-version', - 'Symfony\Component\WebLink\Link::REL_SUCCESSOR_VERSION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'sunset', - 'Symfony\Component\WebLink\Link::REL_SUNSET' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'tag', - 'Symfony\Component\WebLink\Link::REL_TAG' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'terms-of-service', - 'Symfony\Component\WebLink\Link::REL_TERMS_OF_SERVICE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'timegate', - 'Symfony\Component\WebLink\Link::REL_TIMEGATE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'timemap', - 'Symfony\Component\WebLink\Link::REL_TIMEMAP' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'type', - 'Symfony\Component\WebLink\Link::REL_TYPE' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'ugc', - 'Symfony\Component\WebLink\Link::REL_UGC' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'up', - 'Symfony\Component\WebLink\Link::REL_UP' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'version-history', - 'Symfony\Component\WebLink\Link::REL_VERSION_HISTORY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'via', - 'Symfony\Component\WebLink\Link::REL_VIA' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'webmention', - 'Symfony\Component\WebLink\Link::REL_WEBMENTION' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'working-copy', - 'Symfony\Component\WebLink\Link::REL_WORKING_COPY' - ), - new ReplaceArgumentDefaultValue( - 'Symfony\Component\WebLink\Link', - '__construct', - 0, - 'working-copy-of', - 'Symfony\Component\WebLink\Link::REL_WORKING_COPY_OF' - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony64.php b/config/sets/symfony/symfony6/symfony64.php deleted file mode 100644 index aa5355be9..000000000 --- a/config/sets/symfony/symfony6/symfony64.php +++ /dev/null @@ -1,13 +0,0 @@ -import(__DIR__ . '/symfony64/symfony64-routing.php'); - $rectorConfig->import(__DIR__ . '/symfony64/symfony64-form.php'); - $rectorConfig->import(__DIR__ . '/symfony64/symfony64-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony64/symfony64-error-handler.php'); -}; diff --git a/config/sets/symfony/symfony6/symfony64/symfony64-error-handler.php b/config/sets/symfony/symfony6/symfony64/symfony64-error-handler.php deleted file mode 100644 index 55337a948..000000000 --- a/config/sets/symfony/symfony6/symfony64/symfony64-error-handler.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - 'Symfony\Component\HttpKernel\Debug\FileLinkFormatter' => 'Symfony\Component\ErrorHandler\ErrorRenderer\FileLinkFormatter', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony64/symfony64-form.php b/config/sets/symfony/symfony6/symfony64/symfony64-form.php deleted file mode 100644 index 62a1c5306..000000000 --- a/config/sets/symfony/symfony6/symfony64/symfony64-form.php +++ /dev/null @@ -1,24 +0,0 @@ -ruleWithConfiguration(AddReturnTypeDeclarationRector::class, [ - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\DataTransformerInterface', - 'transform', - new MixedType(), - ), - new AddReturnTypeDeclaration( - 'Symfony\Component\Form\DataTransformerInterface', - 'reverseTransform', - new MixedType(), - ), - ]); -}; diff --git a/config/sets/symfony/symfony6/symfony64/symfony64-http-foundation.php b/config/sets/symfony/symfony6/symfony64/symfony64-http-foundation.php deleted file mode 100644 index 4c6b44902..000000000 --- a/config/sets/symfony/symfony6/symfony64/symfony64-http-foundation.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - 'Symfony\Component\HttpKernel\UriSigner' => 'Symfony\Component\HttpFoundation\UriSigner', - ], - ); -}; diff --git a/config/sets/symfony/symfony6/symfony64/symfony64-routing.php b/config/sets/symfony/symfony6/symfony64/symfony64-routing.php deleted file mode 100644 index 370cf016a..000000000 --- a/config/sets/symfony/symfony6/symfony64/symfony64-routing.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration(RenameAttributeRector::class, [ - new RenameAttribute( - 'Symfony\Component\Routing\Annotation\Route', - 'Symfony\Component\Routing\Attribute\Route' - ), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony70.php b/config/sets/symfony/symfony7/symfony70.php deleted file mode 100644 index a998591c0..000000000 --- a/config/sets/symfony/symfony7/symfony70.php +++ /dev/null @@ -1,14 +0,0 @@ -import(__DIR__ . '/symfony70/symfony70-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony70/symfony70-serializer.php'); - $rectorConfig->import(__DIR__ . '/symfony70/symfony70-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony70/symfony70-contracts.php'); - $rectorConfig->import(__DIR__ . '/symfony70/symfony70-routing.php'); -}; diff --git a/config/sets/symfony/symfony7/symfony70/symfony70-contracts.php b/config/sets/symfony/symfony7/symfony70/symfony70-contracts.php deleted file mode 100644 index aba8f82ae..000000000 --- a/config/sets/symfony/symfony7/symfony70/symfony70-contracts.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(AnnotationToAttributeRector::class, [ - new AnnotationToAttribute('required', 'Symfony\Contracts\Service\Attribute\Required'), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony70/symfony70-dependency-injection.php b/config/sets/symfony/symfony7/symfony70/symfony70-dependency-injection.php deleted file mode 100644 index d1cf81c45..000000000 --- a/config/sets/symfony/symfony7/symfony70/symfony70-dependency-injection.php +++ /dev/null @@ -1,17 +0,0 @@ -ruleWithConfiguration(RenameAttributeRector::class, [ - new RenameAttribute( - 'Symfony\Component\DependencyInjection\Attribute\MapDecorated', - 'Symfony\Component\DependencyInjection\Attribute\AutowireDecorated', - ), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony70/symfony70-http-foundation.php b/config/sets/symfony/symfony7/symfony70/symfony70-http-foundation.php deleted file mode 100644 index 8c4305770..000000000 --- a/config/sets/symfony/symfony7/symfony70/symfony70-http-foundation.php +++ /dev/null @@ -1,21 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/blob/7.0/UPGRADE-7.0.md#httpfoundation - 'Symfony\Component\HttpFoundation\RequestMatcher' => 'Symfony\Component\HttpFoundation\ChainRequestMatcher', - 'Symfony\Component\HttpFoundation\ExpressionRequestMatcher' => 'Symfony\Component\HttpFoundation\RequestMatcher\ExpressionRequestMatcher', - ]); - - // @see https://github.com/symfony/symfony/pull/50826 - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\HttpFoundation\Request', 'getContentType', 'getContentTypeFormat'), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony70/symfony70-routing.php b/config/sets/symfony/symfony7/symfony70/symfony70-routing.php deleted file mode 100644 index b9c7f0e47..000000000 --- a/config/sets/symfony/symfony7/symfony70/symfony70-routing.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration(RenameAttributeRector::class, [ - new RenameAttribute( - 'Symfony\Component\Routing\Annotation\Route', - 'Symfony\Component\Routing\Attribute\Route', - ), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony70/symfony70-serializer.php b/config/sets/symfony/symfony7/symfony70/symfony70-serializer.php deleted file mode 100644 index 020fb1be2..000000000 --- a/config/sets/symfony/symfony7/symfony70/symfony70-serializer.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/blob/7.0/UPGRADE-7.0.md#frameworkbundle - 'Symfony\Component\Serializer\Normalizer\ObjectNormalizer' => 'Symfony\Component\Serializer\Normalizer\NormalizerInterface', - 'Symfony\Component\Serializer\Normalizer\PropertyNormalizer' => 'Symfony\Component\Serializer\Normalizer\NormalizerInterface', - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony71.php b/config/sets/symfony/symfony7/symfony71.php deleted file mode 100644 index 8552c08a1..000000000 --- a/config/sets/symfony/symfony7/symfony71.php +++ /dev/null @@ -1,12 +0,0 @@ -import(__DIR__ . '/symfony71/symfony71-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony71/symfony71-serializer.php'); -}; diff --git a/config/sets/symfony/symfony7/symfony71/symfony71-dependency-injection.php b/config/sets/symfony/symfony7/symfony71/symfony71-dependency-injection.php deleted file mode 100644 index 6137f5313..000000000 --- a/config/sets/symfony/symfony7/symfony71/symfony71-dependency-injection.php +++ /dev/null @@ -1,21 +0,0 @@ -ruleWithConfiguration(RenameAttributeRector::class, [ - new RenameAttribute( - 'Symfony\Component\DependencyInjection\Attribute\TaggedIterator', - 'Symfony\Component\DependencyInjection\Attribute\AutowireIterator' - ), - new RenameAttribute( - 'Symfony\Component\DependencyInjection\Attribute\TaggedLocator', - 'Symfony\Component\DependencyInjection\Attribute\AutowireLocator' - ), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony71/symfony71-serializer.php b/config/sets/symfony/symfony7/symfony71/symfony71-serializer.php deleted file mode 100644 index ae14d5ee3..000000000 --- a/config/sets/symfony/symfony7/symfony71/symfony71-serializer.php +++ /dev/null @@ -1,19 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // typo fix - new MethodCallRename( - 'Symfony\Component\Serializer\Context\Normalizer\AbstractNormalizerContextBuilder', - 'withDefaultContructorArguments', - 'withDefaultConstructorArguments', - ), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony72.php b/config/sets/symfony/symfony7/symfony72.php deleted file mode 100644 index c2c3a3b03..000000000 --- a/config/sets/symfony/symfony7/symfony72.php +++ /dev/null @@ -1,14 +0,0 @@ -import(__DIR__ . '/symfony72/symfony72-serializer.php'); - $rectorConfig->import(__DIR__ . '/symfony72/symfony72-http-foundation.php'); - $rectorConfig->import(__DIR__ . '/symfony72/symfony72-mailer.php'); - $rectorConfig->import(__DIR__ . '/symfony72/symfony72-translation.php'); -}; diff --git a/config/sets/symfony/symfony7/symfony72/symfony72-http-foundation.php b/config/sets/symfony/symfony7/symfony72/symfony72-http-foundation.php deleted file mode 100644 index 1f1a01e91..000000000 --- a/config/sets/symfony/symfony7/symfony72/symfony72-http-foundation.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([PushRequestToRequestStackConstructorRector::class]); -}; diff --git a/config/sets/symfony/symfony7/symfony72/symfony72-mailer.php b/config/sets/symfony/symfony7/symfony72/symfony72-mailer.php deleted file mode 100644 index 1b245085e..000000000 --- a/config/sets/symfony/symfony7/symfony72/symfony72-mailer.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.2.md#mailer - 'Symfony\Component\Mailer\Test\TransportFactoryTestCase' => 'Symfony\Component\Mailer\Test\AbstractTransportFactoryTestCase', - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony72/symfony72-serializer.php b/config/sets/symfony/symfony7/symfony72/symfony72-serializer.php deleted file mode 100644 index da49070de..000000000 --- a/config/sets/symfony/symfony7/symfony72/symfony72-serializer.php +++ /dev/null @@ -1,13 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - // @see https://github.com/symfony/symfony/blob/7.2/UPGRADE-7.2.md#serializer - 'Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface' => 'Symfony\Component\Serializer\NameConverter\NameConverterInterface', - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony72/symfony72-translation.php b/config/sets/symfony/symfony7/symfony72/symfony72-translation.php deleted file mode 100644 index f8fa98191..000000000 --- a/config/sets/symfony/symfony7/symfony72/symfony72-translation.php +++ /dev/null @@ -1,12 +0,0 @@ -ruleWithConfiguration(RenameClassRector::class, [ - 'Symfony\Component\Translation\Test\ProviderFactoryTestCase;' => 'Symfony\Component\Translation\Test\AbstractProviderFactoryTestCase', - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony73.php b/config/sets/symfony/symfony7/symfony73.php deleted file mode 100644 index 5a8d63cdd..000000000 --- a/config/sets/symfony/symfony7/symfony73.php +++ /dev/null @@ -1,14 +0,0 @@ -import(__DIR__ . '/symfony73/symfony73-console.php'); - $rectorConfig->import(__DIR__ . '/symfony73/symfony73-security-core.php'); - $rectorConfig->import(__DIR__ . '/symfony73/symfony73-twig-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony73/symfony73-validator.php'); -}; diff --git a/config/sets/symfony/symfony7/symfony73/symfony73-console.php b/config/sets/symfony/symfony7/symfony73/symfony73-console.php deleted file mode 100644 index 0f1e6d546..000000000 --- a/config/sets/symfony/symfony7/symfony73/symfony73-console.php +++ /dev/null @@ -1,14 +0,0 @@ -rules([ - CommandHelpToAttributeRector::class, - CommandDefaultNameAndDescriptionToAsCommandAttributeRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony73/symfony73-security-core.php b/config/sets/symfony/symfony7/symfony73/symfony73-security-core.php deleted file mode 100644 index 71f2857a7..000000000 --- a/config/sets/symfony/symfony7/symfony73/symfony73-security-core.php +++ /dev/null @@ -1,14 +0,0 @@ -rules([ - AddVoteArgumentToVoteOnAttributeRector::class, - AuthorizationCheckerToAccessDecisionManagerInVoterRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony73/symfony73-twig-bundle.php b/config/sets/symfony/symfony7/symfony73/symfony73-twig-bundle.php deleted file mode 100644 index d18a0b696..000000000 --- a/config/sets/symfony/symfony7/symfony73/symfony73-twig-bundle.php +++ /dev/null @@ -1,14 +0,0 @@ -rules([ - GetFiltersToAsTwigFilterAttributeRector::class, - GetFunctionsToAsTwigFunctionAttributeRector::class, - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony73/symfony73-validator.php b/config/sets/symfony/symfony7/symfony73/symfony73-validator.php deleted file mode 100644 index 061fa6426..000000000 --- a/config/sets/symfony/symfony7/symfony73/symfony73-validator.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([ConstraintOptionsToNamedArgumentsRector::class]); -}; diff --git a/config/sets/symfony/symfony7/symfony74.php b/config/sets/symfony/symfony7/symfony74.php deleted file mode 100644 index 83b9365b1..000000000 --- a/config/sets/symfony/symfony7/symfony74.php +++ /dev/null @@ -1,15 +0,0 @@ -import(__DIR__ . '/symfony74/symfony74-console.php'); - $rectorConfig->import(__DIR__ . '/symfony74/symfony74-framework-bundle.php'); - $rectorConfig->import(__DIR__ . '/symfony74/symfony74-json-streamer.php'); - $rectorConfig->import(__DIR__ . '/symfony74/symfony74-routing.php'); - $rectorConfig->import(__DIR__ . '/symfony74/symfony74-workflow.php'); -}; diff --git a/config/sets/symfony/symfony7/symfony74/symfony74-console.php b/config/sets/symfony/symfony7/symfony74/symfony74-console.php deleted file mode 100644 index aa9ac8939..000000000 --- a/config/sets/symfony/symfony7/symfony74/symfony74-console.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Component\Console\Application', 'add', 'addCommand'), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony74/symfony74-framework-bundle.php b/config/sets/symfony/symfony7/symfony74/symfony74-framework-bundle.php deleted file mode 100644 index 0550e4855..000000000 --- a/config/sets/symfony/symfony7/symfony74/symfony74-framework-bundle.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename('Symfony\Bundle\FrameworkBundle\Console\Application', 'add', 'addCommand'), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony74/symfony74-json-streamer.php b/config/sets/symfony/symfony7/symfony74/symfony74-json-streamer.php deleted file mode 100644 index 5bcc25507..000000000 --- a/config/sets/symfony/symfony7/symfony74/symfony74-json-streamer.php +++ /dev/null @@ -1,43 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - new MethodCallRename( - 'Symfony\Component\JsonStreamer\Mapping\PropertyMetadata', - 'getNativeToStreamValueTransformer', - 'getValueTransformers' - ), - new MethodCallRename( - 'Symfony\Component\JsonStreamer\Mapping\PropertyMetadata', - 'getStreamToNativeValueTransformers', - 'getValueTransformers' - ), - new MethodCallRename( - 'Symfony\Component\JsonStreamer\Mapping\PropertyMetadata', - 'withNativeToStreamValueTransformers', - 'withValueTransformers' - ), - new MethodCallRename( - 'Symfony\Component\JsonStreamer\Mapping\PropertyMetadata', - 'withStreamToNativeValueTransformers', - 'withValueTransformers' - ), - new MethodCallRename( - 'Symfony\Component\JsonStreamer\Mapping\PropertyMetadata', - 'withAdditionalNativeToStreamValueTransformer', - 'withAdditionalValueTransformer' - ), - new MethodCallRename( - 'Symfony\Component\JsonStreamer\Mapping\PropertyMetadata', - 'withAdditionalStreamToNativeValueTransformer', - 'withAdditionalValueTransformer' - ), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony74/symfony74-routing.php b/config/sets/symfony/symfony7/symfony74/symfony74-routing.php deleted file mode 100644 index de68da90e..000000000 --- a/config/sets/symfony/symfony7/symfony74/symfony74-routing.php +++ /dev/null @@ -1,14 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // @see https://github.com/symfony/symfony/pull/61358 - new MethodCallRename('Symfony\Component\Routing\Attribute\Route', 'setEnv', 'setEnvs'), - ]); -}; diff --git a/config/sets/symfony/symfony7/symfony74/symfony74-workflow.php b/config/sets/symfony/symfony7/symfony74/symfony74-workflow.php deleted file mode 100644 index 7ce36060a..000000000 --- a/config/sets/symfony/symfony7/symfony74/symfony74-workflow.php +++ /dev/null @@ -1,16 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - 'Symfony\Bundle\FrameworkBundle\Command\WorkflowDumpCommand' => 'Symfony\Component\Workflow\Command\WorkflowDumpCommand', - ], - ); -}; diff --git a/config/sets/symfony/symfony8/symfony80.php b/config/sets/symfony/symfony8/symfony80.php deleted file mode 100644 index 7938c5ad0..000000000 --- a/config/sets/symfony/symfony8/symfony80.php +++ /dev/null @@ -1,10 +0,0 @@ -import(__DIR__ . '/symfony80/symfony80-security-core.php'); -}; diff --git a/config/sets/symfony/symfony8/symfony80/symfony80-security-core.php b/config/sets/symfony/symfony8/symfony80/symfony80-security-core.php deleted file mode 100644 index 9258e0152..000000000 --- a/config/sets/symfony/symfony8/symfony80/symfony80-security-core.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([RemoveEraseCredentialsRector::class]); -}; diff --git a/config/sets/symfony/symfony8/symfony81.php b/config/sets/symfony/symfony8/symfony81.php deleted file mode 100644 index 3a3500b02..000000000 --- a/config/sets/symfony/symfony8/symfony81.php +++ /dev/null @@ -1,15 +0,0 @@ -import(__DIR__ . '/symfony81/symfony81-dependency-injection.php'); - $rectorConfig->import(__DIR__ . '/symfony81/symfony81-uid.php'); - $rectorConfig->import(__DIR__ . '/symfony81/symfony81-serializer.php'); - $rectorConfig->import(__DIR__ . '/symfony81/symfony81-filesystem.php'); - $rectorConfig->import(__DIR__ . '/symfony81/symfony81-security.php'); - $rectorConfig->import(__DIR__ . '/symfony81/symfony81-validator.php'); -}; diff --git a/config/sets/symfony/symfony8/symfony81/symfony81-dependency-injection.php b/config/sets/symfony/symfony8/symfony81/symfony81-dependency-injection.php deleted file mode 100644 index 41195fcc8..000000000 --- a/config/sets/symfony/symfony8/symfony81/symfony81-dependency-injection.php +++ /dev/null @@ -1,22 +0,0 @@ -ruleWithConfiguration( - RenameClassRector::class, - [ - 'Symfony\Component\HttpKernel\Bundle\BundleInterface' => 'Symfony\Component\DependencyInjection\Kernel\BundleInterface', - 'Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass' => 'Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass', - 'Symfony\Component\HttpKernel\Config\FileLocator' => 'Symfony\Component\DependencyInjection\Kernel\FileLocator', - 'Symfony\Component\HttpKernel\DependencyInjection\ServicesResetter' => 'Symfony\Component\DependencyInjection\ServicesResetter', - 'Symfony\Component\HttpKernel\DependencyInjection\ServicesResetterInterface' => 'Symfony\Component\DependencyInjection\ServicesResetterInterface', - 'Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass' => 'Symfony\Component\DependencyInjection\Compiler\ResettableServicePass', - 'Symfony\Component\HttpKernel\DependencyInjection\Extension' => 'Symfony\Component\DependencyInjection\Extension\Extension', - ], - ); -}; diff --git a/config/sets/symfony/symfony8/symfony81/symfony81-filesystem.php b/config/sets/symfony/symfony8/symfony81/symfony81-filesystem.php deleted file mode 100644 index 76b9d96ca..000000000 --- a/config/sets/symfony/symfony8/symfony81/symfony81-filesystem.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([RenameCopyOnWindowsOptionToFollowSymlinksRector::class]); -}; diff --git a/config/sets/symfony/symfony8/symfony81/symfony81-security.php b/config/sets/symfony/symfony8/symfony81/symfony81-security.php deleted file mode 100644 index f89afff57..000000000 --- a/config/sets/symfony/symfony8/symfony81/symfony81-security.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([RemoveEraseCredentialsFromAuthenticatorManagerRector::class]); -}; diff --git a/config/sets/symfony/symfony8/symfony81/symfony81-serializer.php b/config/sets/symfony/symfony8/symfony81/symfony81-serializer.php deleted file mode 100644 index f23782758..000000000 --- a/config/sets/symfony/symfony8/symfony81/symfony81-serializer.php +++ /dev/null @@ -1,18 +0,0 @@ -ruleWithConfiguration(RenameMethodRector::class, [ - // @see https://github.com/symfony/symfony/blob/8.1/UPGRADE-8.1.md#serializer - new MethodCallRename( - 'Symfony\Component\Serializer\Exception\PartialDenormalizationException', - 'getErrors', - 'getNotNormalizableValueErrors' - ), - ]); -}; diff --git a/config/sets/symfony/symfony8/symfony81/symfony81-uid.php b/config/sets/symfony/symfony8/symfony81/symfony81-uid.php deleted file mode 100644 index 1e7acc90e..000000000 --- a/config/sets/symfony/symfony8/symfony81/symfony81-uid.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([AddFormatArgumentToIsValidRector::class]); -}; diff --git a/config/sets/symfony/symfony8/symfony81/symfony81-validator.php b/config/sets/symfony/symfony8/symfony81/symfony81-validator.php deleted file mode 100644 index 19b79b2eb..000000000 --- a/config/sets/symfony/symfony8/symfony81/symfony81-validator.php +++ /dev/null @@ -1,10 +0,0 @@ -rules([ConstraintValidatorValidateToValidateInContextRector::class]); -}; diff --git a/ecs.php b/ecs.php index 12e35d49f..e718ad238 100644 --- a/ecs.php +++ b/ecs.php @@ -10,7 +10,7 @@ [__DIR__ . '/src', __DIR__ . '/rules', __DIR__ . '/rules-tests', __DIR__ . '/tests', __DIR__ . '/config'] ) ->withRootFiles() - ->withPreparedSets(psr12: true, symplify: true, common: true) + ->withPreparedSets(psr12: true, common: true) ->withSkip([ '*/Source/*', '*/Fixture/*', diff --git a/phpstan.neon b/phpstan.neon index f26c752ee..13d5b05c5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -74,12 +74,6 @@ parameters: - '#Parameter 1 should use "PHPStan\\BetterReflection\\Reflection\\Adapter\\ReflectionMethod" type as the only type passed to this method#' - # in tests - - - message: '#Fetching deprecated class constant SYMFONY_(.*?) of class Rector\\Symfony\\Set\\SymfonySetList#' - paths: - - tests - - config/sets/symfony/annotations-to-attributes.php # using XML to load symfony config - path: src/ValueObjectFactory/ServiceMapFactory.php diff --git a/src/Set/SymfonySetList.php b/src/Set/SymfonySetList.php index b61b55f75..a5af30468 100644 --- a/src/Set/SymfonySetList.php +++ b/src/Set/SymfonySetList.php @@ -16,171 +16,6 @@ final class SymfonySetList */ public const string COMPOSER_BASED = __DIR__ . '/../../config/sets/symfony/composer-based.php'; - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_25 = __DIR__ . '/../../config/sets/symfony/symfony25.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_26 = __DIR__ . '/../../config/sets/symfony/symfony26.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_27 = __DIR__ . '/../../config/sets/symfony/symfony27.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_28 = __DIR__ . '/../../config/sets/symfony/symfony28.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_30 = __DIR__ . '/../../config/sets/symfony/symfony3/symfony30.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_31 = __DIR__ . '/../../config/sets/symfony/symfony3/symfony31.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_32 = __DIR__ . '/../../config/sets/symfony/symfony3/symfony32.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_33 = __DIR__ . '/../../config/sets/symfony/symfony3/symfony33.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_34 = __DIR__ . '/../../config/sets/symfony/symfony3/symfony34.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_40 = __DIR__ . '/../../config/sets/symfony/symfony4/symfony40.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_41 = __DIR__ . '/../../config/sets/symfony/symfony4/symfony41.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_42 = __DIR__ . '/../../config/sets/symfony/symfony4/symfony42.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_43 = __DIR__ . '/../../config/sets/symfony/symfony4/symfony43.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_44 = __DIR__ . '/../../config/sets/symfony/symfony4/symfony44.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_50 = __DIR__ . '/../../config/sets/symfony/symfony5/symfony50.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_50_TYPES = __DIR__ . '/../../config/sets/symfony/symfony5/symfony50/symfony50-types.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_51 = __DIR__ . '/../../config/sets/symfony/symfony5/symfony51.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_52 = __DIR__ . '/../../config/sets/symfony/symfony5/symfony52.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_53 = __DIR__ . '/../../config/sets/symfony/symfony5/symfony53.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_54 = __DIR__ . '/../../config/sets/symfony/symfony5/symfony54.php'; - - /** - * @deprecated Use ->withAttributesSets(symfony: true) in rector.php config instead - */ - public const string SYMFONY_52_VALIDATOR_ATTRIBUTES = __DIR__ . '/../../config/sets/symfony/symfony5/symfony52-validator-attributes.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_60 = __DIR__ . '/../../config/sets/symfony/symfony6/symfony60.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_61 = __DIR__ . '/../../config/sets/symfony/symfony6/symfony61.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_62 = __DIR__ . '/../../config/sets/symfony/symfony6/symfony62.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_63 = __DIR__ . '/../../config/sets/symfony/symfony6/symfony63.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_64 = __DIR__ . '/../../config/sets/symfony/symfony6/symfony64.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_70 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony70.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_71 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony71.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_72 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony72.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_73 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony73.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_74 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony74.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_80 = __DIR__ . '/../../config/sets/symfony/symfony8/symfony80.php'; - - /** - * @deprecated Set list are too generic and do not handle package differences. Use ->withComposerBased(symfony: true) instead - */ - public const string SYMFONY_81 = __DIR__ . '/../../config/sets/symfony/symfony8/symfony81.php'; - public const string SYMFONY_CODE_QUALITY = __DIR__ . '/../../config/sets/symfony/symfony-code-quality.php'; public const string SYMFONY_CONSTRUCTOR_INJECTION = __DIR__ . '/../../config/sets/symfony/symfony-constructor-injection.php'; diff --git a/tests/Set/Symfony32/Fixture/replace_new_cookie_parameter_value.php.inc b/tests/Set/Symfony32/Fixture/replace_new_cookie_parameter_value.php.inc deleted file mode 100644 index ca3ed3e21..000000000 --- a/tests/Set/Symfony32/Fixture/replace_new_cookie_parameter_value.php.inc +++ /dev/null @@ -1,33 +0,0 @@ - - ------ - - diff --git a/tests/Set/Symfony32/Symfony32Test.php b/tests/Set/Symfony32/Symfony32Test.php deleted file mode 100644 index f5196a7ab..000000000 --- a/tests/Set/Symfony32/Symfony32Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony32.php'; - } -} diff --git a/tests/Set/Symfony32/config/symfony32.php b/tests/Set/Symfony32/config/symfony32.php deleted file mode 100644 index 94ea54cf9..000000000 --- a/tests/Set/Symfony32/config/symfony32.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_32]); -}; diff --git a/tests/Set/Symfony42/Fixture/replace_new_cookie_and_create_parameter_value.php.inc b/tests/Set/Symfony42/Fixture/replace_new_cookie_and_create_parameter_value.php.inc deleted file mode 100644 index f82215283..000000000 --- a/tests/Set/Symfony42/Fixture/replace_new_cookie_and_create_parameter_value.php.inc +++ /dev/null @@ -1,37 +0,0 @@ - - ------ - - diff --git a/tests/Set/Symfony42/Symfony42Test.php b/tests/Set/Symfony42/Symfony42Test.php deleted file mode 100644 index 8485ed984..000000000 --- a/tests/Set/Symfony42/Symfony42Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony42.php'; - } -} diff --git a/tests/Set/Symfony42/config/symfony42.php b/tests/Set/Symfony42/config/symfony42.php deleted file mode 100644 index 55f03e8f2..000000000 --- a/tests/Set/Symfony42/config/symfony42.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_42]); -}; diff --git a/tests/Set/Symfony44/Fixture/event_fixture.php.inc b/tests/Set/Symfony44/Fixture/event_fixture.php.inc deleted file mode 100644 index 2524e594a..000000000 --- a/tests/Set/Symfony44/Fixture/event_fixture.php.inc +++ /dev/null @@ -1,29 +0,0 @@ -getException(); - $exceptionEvent->setException($exception); - } -} - -?> ------ -getThrowable(); - $exceptionEvent->setThrowable($exception); - } -} - -?> diff --git a/tests/Set/Symfony44/Fixture/replace_new_link_parameter_value.php.inc b/tests/Set/Symfony44/Fixture/replace_new_link_parameter_value.php.inc deleted file mode 100644 index 1352d6c6e..000000000 --- a/tests/Set/Symfony44/Fixture/replace_new_link_parameter_value.php.inc +++ /dev/null @@ -1,31 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony44/Fixture/replace_with_rel_parameter_value.php.inc b/tests/Set/Symfony44/Fixture/replace_with_rel_parameter_value.php.inc deleted file mode 100644 index e4be92ec6..000000000 --- a/tests/Set/Symfony44/Fixture/replace_with_rel_parameter_value.php.inc +++ /dev/null @@ -1,33 +0,0 @@ -withRel('preload'); - } -} - -?> ------ -withRel(\Symfony\Component\WebLink\Link::REL_PRELOAD); - } -} - -?> diff --git a/tests/Set/Symfony44/Fixture/replace_without_rel_parameter_value.php.inc b/tests/Set/Symfony44/Fixture/replace_without_rel_parameter_value.php.inc deleted file mode 100644 index 242dd0f96..000000000 --- a/tests/Set/Symfony44/Fixture/replace_without_rel_parameter_value.php.inc +++ /dev/null @@ -1,33 +0,0 @@ -withoutRel('preload'); - } -} - -?> ------ -withoutRel(\Symfony\Component\WebLink\Link::REL_PRELOAD); - } -} - -?> diff --git a/tests/Set/Symfony44/Symfony44Test.php b/tests/Set/Symfony44/Symfony44Test.php deleted file mode 100644 index 380fe1484..000000000 --- a/tests/Set/Symfony44/Symfony44Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony44.php'; - } -} diff --git a/tests/Set/Symfony44/config/symfony44.php b/tests/Set/Symfony44/config/symfony44.php deleted file mode 100644 index 631a7f5fa..000000000 --- a/tests/Set/Symfony44/config/symfony44.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_44]); -}; diff --git a/tests/Set/Symfony50/Fixture/skip_translator_that_already_uses_string_types.php.inc b/tests/Set/Symfony50/Fixture/skip_translator_that_already_uses_string_types.php.inc deleted file mode 100644 index fa340a90c..000000000 --- a/tests/Set/Symfony50/Fixture/skip_translator_that_already_uses_string_types.php.inc +++ /dev/null @@ -1,16 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony50/Symfony50Test.php b/tests/Set/Symfony50/Symfony50Test.php deleted file mode 100644 index 791f16a4d..000000000 --- a/tests/Set/Symfony50/Symfony50Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony50.php'; - } -} diff --git a/tests/Set/Symfony50/config/symfony50.php b/tests/Set/Symfony50/config/symfony50.php deleted file mode 100644 index a837545f2..000000000 --- a/tests/Set/Symfony50/config/symfony50.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_50]); -}; diff --git a/tests/Set/Symfony51/Fixture/replace_cookie_with_same_site_parameter_value.php.inc b/tests/Set/Symfony51/Fixture/replace_cookie_with_same_site_parameter_value.php.inc deleted file mode 100644 index ff3d9b3db..000000000 --- a/tests/Set/Symfony51/Fixture/replace_cookie_with_same_site_parameter_value.php.inc +++ /dev/null @@ -1,39 +0,0 @@ -withSameSite('none'); - - return $cookie; - } -} - -?> - ------ -withSameSite(\Symfony\Component\HttpFoundation\Cookie::SAMESITE_NONE); - - return $cookie; - } -} - -?> - diff --git a/tests/Set/Symfony51/Symfony51Test.php b/tests/Set/Symfony51/Symfony51Test.php deleted file mode 100644 index 50dc16dff..000000000 --- a/tests/Set/Symfony51/Symfony51Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony51.php'; - } -} diff --git a/tests/Set/Symfony51/config/symfony51.php b/tests/Set/Symfony51/config/symfony51.php deleted file mode 100644 index 8aaa831f7..000000000 --- a/tests/Set/Symfony51/config/symfony51.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_51]); -}; diff --git a/tests/Set/Symfony52/Fixture/email_attribute_modes_to_constants.php.inc b/tests/Set/Symfony52/Fixture/email_attribute_modes_to_constants.php.inc deleted file mode 100644 index dce2b19da..000000000 --- a/tests/Set/Symfony52/Fixture/email_attribute_modes_to_constants.php.inc +++ /dev/null @@ -1,59 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony52/Symfony52Test.php b/tests/Set/Symfony52/Symfony52Test.php deleted file mode 100644 index 7eb802ab0..000000000 --- a/tests/Set/Symfony52/Symfony52Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony52.php'; - } -} diff --git a/tests/Set/Symfony52/config/symfony52.php b/tests/Set/Symfony52/config/symfony52.php deleted file mode 100644 index ddf4b41eb..000000000 --- a/tests/Set/Symfony52/config/symfony52.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_52]); -}; diff --git a/tests/Set/Symfony60/Fixture/loader_not_using_mixed.php.inc b/tests/Set/Symfony60/Fixture/loader_not_using_mixed.php.inc deleted file mode 100644 index e15003227..000000000 --- a/tests/Set/Symfony60/Fixture/loader_not_using_mixed.php.inc +++ /dev/null @@ -1,39 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony60/Fixture/router_get_route_collection.php.inc b/tests/Set/Symfony60/Fixture/router_get_route_collection.php.inc deleted file mode 100644 index a1ac1411d..000000000 --- a/tests/Set/Symfony60/Fixture/router_get_route_collection.php.inc +++ /dev/null @@ -1,37 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony60/Fixture/router_interface_get_route_collection.php.inc b/tests/Set/Symfony60/Fixture/router_interface_get_route_collection.php.inc deleted file mode 100644 index 30452eb0d..000000000 --- a/tests/Set/Symfony60/Fixture/router_interface_get_route_collection.php.inc +++ /dev/null @@ -1,37 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony60/Fixture/skip_loader_already_using_mixed.php.inc b/tests/Set/Symfony60/Fixture/skip_loader_already_using_mixed.php.inc deleted file mode 100644 index a58782907..000000000 --- a/tests/Set/Symfony60/Fixture/skip_loader_already_using_mixed.php.inc +++ /dev/null @@ -1,18 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony60.php'; - } -} diff --git a/tests/Set/Symfony60/config/symfony60.php b/tests/Set/Symfony60/config/symfony60.php deleted file mode 100644 index bb553578c..000000000 --- a/tests/Set/Symfony60/config/symfony60.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_60]); -}; diff --git a/tests/Set/Symfony61/Fixture/email_html5_allow_no_tld_attribute.php.inc b/tests/Set/Symfony61/Fixture/email_html5_allow_no_tld_attribute.php.inc deleted file mode 100644 index 329edc88e..000000000 --- a/tests/Set/Symfony61/Fixture/email_html5_allow_no_tld_attribute.php.inc +++ /dev/null @@ -1,27 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony61/Fixture/replace_deprecated_interfaces_serializer.php.inc b/tests/Set/Symfony61/Fixture/replace_deprecated_interfaces_serializer.php.inc deleted file mode 100644 index 8e10da70f..000000000 --- a/tests/Set/Symfony61/Fixture/replace_deprecated_interfaces_serializer.php.inc +++ /dev/null @@ -1,29 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony61/Symfony61Test.php b/tests/Set/Symfony61/Symfony61Test.php deleted file mode 100644 index 36ca24b55..000000000 --- a/tests/Set/Symfony61/Symfony61Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony61.php'; - } -} diff --git a/tests/Set/Symfony61/config/symfony61.php b/tests/Set/Symfony61/config/symfony61.php deleted file mode 100644 index b47fa36a9..000000000 --- a/tests/Set/Symfony61/config/symfony61.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_61]); -}; diff --git a/tests/Set/Symfony62/Fixture/email_loose_to_html5.php.inc b/tests/Set/Symfony62/Fixture/email_loose_to_html5.php.inc deleted file mode 100644 index 533117c43..000000000 --- a/tests/Set/Symfony62/Fixture/email_loose_to_html5.php.inc +++ /dev/null @@ -1,27 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony62/Fixture/replace_sensio_cache.php.inc b/tests/Set/Symfony62/Fixture/replace_sensio_cache.php.inc deleted file mode 100644 index 70cad79ce..000000000 --- a/tests/Set/Symfony62/Fixture/replace_sensio_cache.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony62/Fixture/replace_sensio_is_granted.php.inc b/tests/Set/Symfony62/Fixture/replace_sensio_is_granted.php.inc deleted file mode 100644 index a8f310404..000000000 --- a/tests/Set/Symfony62/Fixture/replace_sensio_is_granted.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony62/Fixture/replace_sensio_template.php.inc b/tests/Set/Symfony62/Fixture/replace_sensio_template.php.inc deleted file mode 100644 index 46fb1d782..000000000 --- a/tests/Set/Symfony62/Fixture/replace_sensio_template.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony62/Symfony62Test.php b/tests/Set/Symfony62/Symfony62Test.php deleted file mode 100644 index ea771328d..000000000 --- a/tests/Set/Symfony62/Symfony62Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony62.php'; - } -} diff --git a/tests/Set/Symfony62/config/symfony62.php b/tests/Set/Symfony62/config/symfony62.php deleted file mode 100644 index f4111c2bf..000000000 --- a/tests/Set/Symfony62/config/symfony62.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_62]); -}; diff --git a/tests/Set/Symfony63/Fixture/replace_new_link_parameter_value.php.inc b/tests/Set/Symfony63/Fixture/replace_new_link_parameter_value.php.inc deleted file mode 100644 index d102d100c..000000000 --- a/tests/Set/Symfony63/Fixture/replace_new_link_parameter_value.php.inc +++ /dev/null @@ -1,31 +0,0 @@ - ------ - diff --git a/tests/Set/Symfony63/Symfony63Test.php b/tests/Set/Symfony63/Symfony63Test.php deleted file mode 100644 index 9807a7b7d..000000000 --- a/tests/Set/Symfony63/Symfony63Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony63.php'; - } -} diff --git a/tests/Set/Symfony63/config/symfony63.php b/tests/Set/Symfony63/config/symfony63.php deleted file mode 100644 index 31af75acc..000000000 --- a/tests/Set/Symfony63/config/symfony63.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_63]); -}; diff --git a/tests/Set/Symfony74/Fixture/router_set_env_to_set_envs.php.inc b/tests/Set/Symfony74/Fixture/router_set_env_to_set_envs.php.inc deleted file mode 100644 index 58bf38e57..000000000 --- a/tests/Set/Symfony74/Fixture/router_set_env_to_set_envs.php.inc +++ /dev/null @@ -1,33 +0,0 @@ -setEnv('prod'); - } -} - -?> ------ -setEnvs('prod'); - } -} - -?> diff --git a/tests/Set/Symfony74/Symfony74Test.php b/tests/Set/Symfony74/Symfony74Test.php deleted file mode 100644 index 7f92fd755..000000000 --- a/tests/Set/Symfony74/Symfony74Test.php +++ /dev/null @@ -1,28 +0,0 @@ -doTestFile($filePath); - } - - public static function provideData(): Iterator - { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); - } - - public function provideConfigFilePath(): string - { - return __DIR__ . '/config/symfony74.php'; - } -} diff --git a/tests/Set/Symfony74/config/symfony74.php b/tests/Set/Symfony74/config/symfony74.php deleted file mode 100644 index b3ffcb89a..000000000 --- a/tests/Set/Symfony74/config/symfony74.php +++ /dev/null @@ -1,10 +0,0 @@ -sets([SymfonySetList::SYMFONY_74]); -};