rector/config/set/symfony/symfony42.yaml

112 lines
4.4 KiB
YAML

services:
# https://github.com/symfony/symfony/pull/28447
Rector\Rector\New_\NewToStaticCallRector:
Symfony\Component\HttpFoundation\Cookie: ['Symfony\Component\HttpFoundation\Cookie', 'create']
Rector\Rector\Class_\RenameClassRector:
# https://github.com/symfony/symfony/commit/a7e319d9e1316e2e18843f8ce15b67a8693e5bf9
Symfony\Bundle\FrameworkBundle\Controller\Controller: 'Symfony\Bundle\FrameworkBundle\Controller\AbstractController'
# https://github.com/symfony/symfony/commit/744bf0e7ac3ecf240d0bf055cc58f881bb0b3ec0
Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand: 'Symfony\Component\Console\Command\Command'
Symfony\Component\Translation\TranslatorInterface: 'Symfony\Contracts\Translation\TranslatorInterface'
# related to "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" deprecation, see https://github.com/rectorphp/rector/issues/1629
Rector\Symfony\Rector\FrameworkBundle\ContainerGetToConstructorInjectionRector: ~
# https://symfony.com/blog/new-in-symfony-4-2-important-deprecations
Rector\Symfony\Rector\New_\StringToArrayArgumentProcessRector: ~
Rector\Symfony\Rector\New_\RootNodeTreeBuilderRector: ~
Rector\Rector\Argument\ArgumentAdderRector:
# https://github.com/symfony/symfony/commit/fa2063efe43109aea093d6fbfc12d675dba82146
# https://github.com/symfony/symfony/commit/e3aa90f852f69040be19da3d8729cdf02d238ec7
Symfony\Component\BrowserKit\Client:
submit:
2:
name: 'serverParameters'
default_value: []
scope: ['method_call']
# https://github.com/symfony/symfony/commit/f634afdb6f573e4af8d89aaa605e0c7d4058676d
Symfony\Component\DomCrawler\Crawler:
children:
0:
# $selector
default_value: null
scope: ['method_call']
Symfony\Component\Finder\Finder:
sortByName:
0:
# $useNaturalSort
default_value: false
scope: ['method_call']
Symfony\Bridge\Monolog\Processor\DebugProcessor:
getLogs:
0:
# $request
default_value: null
scope: ['method_call']
countErrors:
0:
# $request
default_value: null
scope: ['method_call']
Symfony\Bridge\Monolog\Logger:
getLogs:
0:
# $request
default_value: null
scope: ['method_call']
countErrors:
0:
# $request
default_value: null
scope: ['method_call']
Symfony\Component\Serializer\Normalizer:
handleCircularReference:
1:
# $format
default_value: null
scope: ['method_call']
2:
# $context
default_value: []
scope: ['method_call']
Rector\Rector\MethodCall\RenameMethodRector:
Symfony\Component\Cache\CacheItem:
getPreviousTags: 'getMetadata'
Symfony\Component\Form\AbstractTypeExtension:
getExtendedType: 'getExtendedTypes'
Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector:
Symfony\Component\Form\AbstractTypeExtension:
getExtendedTypes: 'iterable'
Rector\Rector\Visibility\ChangeMethodVisibilityRector:
Symfony\Component\Form\AbstractTypeExtension:
getExtendedTypes: 'static'
Rector\Rector\ClassMethod\WrapReturnRector:
Symfony\Component\Form\AbstractTypeExtension:
getExtendedTypes: 'array'
Rector\Rector\Argument\ArgumentDefaultValueReplacerRector:
# https://github.com/symfony/symfony/commit/9493cfd5f2366dab19bbdde0d0291d0575454567
Symfony\Component\HttpFoundation\Cookie:
$secure:
'false': null
$samesite:
'null': 'lax'
Rector\Rector\Argument\ArgumentRemoverRector:
# https://github.com/symfony/symfony/commit/f5c355e1ba399a1b3512367647d902148bdaf09f
Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector:
__construct:
0: ~
1: ~