PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
rector
/
rector-symfony
/
config
/
sets
/
symfony
<?php declare (strict_types=1); namespace RectorPrefix202411; use PhpParser\Node\Scalar\String_; use PHPStan\Type\MixedType; use PHPStan\Type\ObjectType; use Rector\Config\RectorConfig; use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\Name\RenameClassRector; use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Symfony\Set\SymfonySetList; use Rector\Symfony\Symfony60\Rector\FuncCall\ReplaceServiceArgumentRector; use Rector\Symfony\Symfony60\Rector\MethodCall\GetHelperControllerToServiceRector; use Rector\Symfony\ValueObject\ReplaceServiceArgument; use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector; use Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration; # https://github.com/symfony/symfony/blob/6.1/UPGRADE-6.0.md return static function (RectorConfig $rectorConfig) : void { $rectorConfig->sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); $rectorConfig->import(__DIR__ . '/symfony6/symfony-return-types.php'); $rectorConfig->ruleWithConfiguration(ReplaceServiceArgumentRector::class, [new ReplaceServiceArgument('Psr\\Container\\ContainerInterface', new String_('service_container')), new ReplaceServiceArgument('Symfony\\Component\\DependencyInjection\\ContainerInterface', new String_('service_container'))]); $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ // @see https://github.com/symfony/symfony/pull/39484 'Symfony\\Contracts\\HttpClient\\HttpClientInterface\\RemoteJsonManifestVersionStrategy' => 'Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy', ]); $rectorConfig->ruleWithConfiguration(AddParamTypeDeclarationRector::class, [new AddParamTypeDeclaration('Symfony\\Component\\Config\\Loader\\LoaderInterface', 'load', 0, new MixedType(\true)), new AddParamTypeDeclaration('Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait', 'configureRoutes', 0, new ObjectType('Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator'))]); $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [ // @see https://github.com/symfony/symfony/pull/40403 new MethodCallRename('Symfony\\Bridge\\Doctrine\\Security\\User\\UserLoaderInterface', 'loadUserByUsername', 'loadUserByIdentifier'), 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->rule(GetHelperControllerToServiceRector::class); };
[-] 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]