PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
rector
/
rector-symfony
/
config
/
sets
/
symfony
<?php declare (strict_types=1); namespace RectorPrefix202411; use PHPStan\Type\ObjectType; use Rector\Config\RectorConfig; use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\PropertyFetch\RenamePropertyRector; use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Renaming\ValueObject\RenameClassAndConstFetch; use Rector\Renaming\ValueObject\RenameProperty; use Rector\Symfony\Set\SymfonySetList; use Rector\Symfony\Symfony52\Rector\MethodCall\DefinitionAliasSetPrivateToSetPublicRector; use Rector\Symfony\Symfony52\Rector\MethodCall\FormBuilderSetDataMapperRector; use Rector\Symfony\Symfony52\Rector\MethodCall\ReflectionExtractorEnableMagicCallExtractorRector; use Rector\Symfony\Symfony52\Rector\MethodCall\ValidatorBuilderEnableAnnotationMappingRector; use Rector\Symfony\Symfony52\Rector\New_\PropertyAccessorCreationBooleanToFlagsRector; use Rector\Symfony\Symfony52\Rector\New_\PropertyPathMapperToDataMapperRector; use Rector\Symfony\Symfony52\Rector\StaticCall\BinaryFileResponseCreateToNewInstanceRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector; use Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration; # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md return static function (RectorConfig $rectorConfig) : void { $rectorConfig->sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); $rectorConfig->rules([ // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#form PropertyPathMapperToDataMapperRector::class, // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#httpfoundation BinaryFileResponseCreateToNewInstanceRector::class, // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#propertyaccess PropertyAccessorCreationBooleanToFlagsRector::class, // https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#propertyinfo ReflectionExtractorEnableMagicCallExtractorRector::class, # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#dependencyinjection DefinitionAliasSetPrivateToSetPublicRector::class, # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#form FormBuilderSetDataMapperRector::class, # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#validator ValidatorBuilderEnableAnnotationMappingRector::class, ]); # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#security $rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [new RenameClassAndConstFetch('Symfony\\Component\\Security\\Http\\Firewall\\AccessListener', 'PUBLIC_ACCESS', 'Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter', 'PUBLIC_ACCESS')]); $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#mime new MethodCallRename('Symfony\\Component\\Mime\\Address', 'fromString', 'create'), 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'), new MethodCallRename('Symfony\\Component\\Security\\Http\\Authentication\\DefaultAuthenticationSuccessHandler', 'setProviderKey', 'setFirewallName'), new MethodCallRename('Symfony\\Component\\Security\\Http\\Authentication\\DefaultAuthenticationSuccessHandler', 'getProviderKey', 'getFirewallName'), ]); # https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.2.md#notifier $rectorConfig->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'))]); # 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')]); };
[-] configs.php
[edit]
[+]
symfony6
[-] symfony62.php
[edit]
[-] symfony71.php
[edit]
[-] symfony54.php
[edit]
[-] symfony34.php
[edit]
[-] symfony33.php
[edit]
[+]
..
[-] symfony51.php
[edit]
[-] symfony52.php
[edit]
[-] symfony30.php
[edit]
[-] symfony32.php
[edit]
[-] symfony44.php
[edit]
[-] symfony26.php
[edit]
[-] symfony64.php
[edit]
[-] symfony25.php
[edit]
[-] symfony61.php
[edit]
[-] symfony53.php
[edit]
[-] annotations-to-attributes.php
[edit]
[-] symfony28.php
[edit]
[-] symfony52-validator-attributes.php
[edit]
[-] symfony70.php
[edit]
[-] symfony60.php
[edit]
[-] symfony40.php
[edit]
[-] symfony31.php
[edit]
[-] symfony-constructor-injection.php
[edit]
[-] symfony42.php
[edit]
[-] symfony50-types.php
[edit]
[-] symfony63.php
[edit]
[-] symfony43.php
[edit]
[-] symfony50.php
[edit]
[-] symfony41.php
[edit]
[-] symfony27.php
[edit]
[-] symfony-code-quality.php
[edit]