mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-18 09:02:26 +00:00
use explicit null in yaml
This commit is contained in:
parent
e12544ae5f
commit
3159da6712
|
@ -23,7 +23,7 @@ parameters:
|
|||
import_doc_blocks: true
|
||||
|
||||
# what PHP version is used for features, composer.json version, then local PHP version is used by default
|
||||
php_version_features: ~
|
||||
php_version_features: null
|
||||
|
||||
file_extensions:
|
||||
- 'php'
|
||||
|
|
|
@ -17,37 +17,37 @@ services:
|
|||
- '../src/ValueObject/*'
|
||||
|
||||
# extra services
|
||||
Rector\Symfony\Rector\Form\Helper\FormTypeStringToTypeProvider: ~
|
||||
Rector\Symfony\Rector\Form\Helper\FormTypeStringToTypeProvider: null
|
||||
|
||||
Symfony\Component\Console\Application:
|
||||
alias: 'Rector\Console\Application'
|
||||
|
||||
Symfony\Component\Console\Descriptor\TextDescriptor: ~
|
||||
Symfony\Component\Console\Descriptor\TextDescriptor: null
|
||||
|
||||
# PhpParser - Parser
|
||||
PhpParser\ParserFactory: ~
|
||||
PhpParser\BuilderFactory: ~
|
||||
PhpParser\ParserFactory: null
|
||||
PhpParser\BuilderFactory: null
|
||||
PhpParser\NodeVisitor\CloningVisitor:
|
||||
PhpParser\NodeFinder: ~
|
||||
PhpParser\NodeFinder: null
|
||||
|
||||
# value resolver
|
||||
Symfony\Component\Filesystem\Filesystem: ~
|
||||
Symplify\PackageBuilder\Reflection\PrivatesAccessor: ~
|
||||
Symfony\Component\Filesystem\Filesystem: null
|
||||
Symplify\PackageBuilder\Reflection\PrivatesAccessor: null
|
||||
|
||||
Symplify\PackageBuilder\FileSystem\FileSystem: ~
|
||||
Symplify\SmartFileSystem\Finder\FinderSanitizer: ~
|
||||
Symplify\PackageBuilder\FileSystem\FileSystem: null
|
||||
Symplify\SmartFileSystem\Finder\FinderSanitizer: null
|
||||
|
||||
Symplify\PackageBuilder\Parameter\ParameterProvider: ~
|
||||
Symplify\PackageBuilder\Reflection\PrivatesCaller: ~
|
||||
Symplify\PackageBuilder\Strings\StringFormatConverter: ~
|
||||
Symplify\PackageBuilder\Parameter\ParameterProvider: null
|
||||
Symplify\PackageBuilder\Reflection\PrivatesCaller: null
|
||||
Symplify\PackageBuilder\Strings\StringFormatConverter: null
|
||||
|
||||
# alises
|
||||
Symfony\Contracts\EventDispatcher\EventDispatcherInterface: '@Rector\EventDispatcher\AutowiredEventDispatcher'
|
||||
|
||||
OndraM\CiDetector\CiDetector: ~
|
||||
OndraM\CiDetector\CiDetector: null
|
||||
|
||||
# see https://github.com/symplify/packagebuilder#prevent-parameter-typos
|
||||
Symplify\PackageBuilder\EventSubscriber\ParameterTypoProofreaderEventSubscriber: ~
|
||||
Symplify\PackageBuilder\EventSubscriber\ParameterTypoProofreaderEventSubscriber: null
|
||||
Symplify\PackageBuilder\Parameter\ParameterTypoProofreader:
|
||||
$correctToTypos:
|
||||
# keep "exclude_" explicit, to get typos to the correct key
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
Rector\Rector\Architecture\DependencyInjection\ActionInjectionToConstructorInjectionRector: ~
|
||||
Rector\Rector\Architecture\DependencyInjection\ReplaceVariableByPropertyFetchRector: ~
|
||||
Rector\Rector\Architecture\DependencyInjection\ActionInjectionToConstructorInjectionRector: null
|
||||
Rector\Rector\Architecture\DependencyInjection\ReplaceVariableByPropertyFetchRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\Architecture\Rector\Class_\ConstructorInjectionToActionInjectionRector: ~
|
||||
Rector\Architecture\Rector\Class_\ConstructorInjectionToActionInjectionRector: null
|
||||
|
|
|
@ -4,7 +4,7 @@ parameters:
|
|||
|
||||
services:
|
||||
# order matters, this needs to be first to correctly detect parent repository
|
||||
Rector\Rector\Architecture\RepositoryAsService\ReplaceParentRepositoryCallsByRepositoryPropertyRector: ~
|
||||
Rector\Rector\Architecture\RepositoryAsService\MoveRepositoryFromParentToConstructorRector: ~
|
||||
Rector\Rector\Architecture\RepositoryAsService\ServiceLocatorToDIRector: ~
|
||||
Rector\Doctrine\Rector\Class_\RemoveRepositoryFromEntityAnnotationRector: ~
|
||||
Rector\Rector\Architecture\RepositoryAsService\ReplaceParentRepositoryCallsByRepositoryPropertyRector: null
|
||||
Rector\Rector\Architecture\RepositoryAsService\MoveRepositoryFromParentToConstructorRector: null
|
||||
Rector\Rector\Architecture\RepositoryAsService\ServiceLocatorToDIRector: null
|
||||
Rector\Doctrine\Rector\Class_\RemoveRepositoryFromEntityAnnotationRector: null
|
||||
|
|
|
@ -42,14 +42,14 @@ services:
|
|||
config:
|
||||
minimal_argument_count: 2
|
||||
first_argument_type_to_set: array
|
||||
dsnClassMap: ~
|
||||
dsnClassMap: null
|
||||
Cake\Console\ConsoleOptionParser:
|
||||
command: ~
|
||||
description: ~
|
||||
epilog: ~
|
||||
command: null
|
||||
description: null
|
||||
epilog: null
|
||||
Cake\Database\Connection:
|
||||
driver: ~
|
||||
schemaCollection: ~
|
||||
driver: null
|
||||
schemaCollection: null
|
||||
useSavePoints:
|
||||
set: 'enableSavePoints'
|
||||
get: 'isSavePointsEnabled'
|
||||
|
@ -58,59 +58,59 @@ services:
|
|||
set: 'enableAutoQuoting'
|
||||
get: 'isAutoQuotingEnabled'
|
||||
Cake\Database\Expression\FunctionExpression:
|
||||
name: ~
|
||||
name: null
|
||||
Cake\Database\Expression\QueryExpression:
|
||||
tieWith:
|
||||
set: 'setConjunction'
|
||||
get: 'getConjunction'
|
||||
Cake\Database\Expression\ValuesExpression:
|
||||
columns: ~
|
||||
values: ~
|
||||
query: ~
|
||||
columns: null
|
||||
values: null
|
||||
query: null
|
||||
Cake\Database\Query:
|
||||
connection: ~
|
||||
selectTypeMap: ~
|
||||
connection: null
|
||||
selectTypeMap: null
|
||||
bufferResults:
|
||||
set: 'enableBufferedResults'
|
||||
get: 'isBufferedResultsEnabled'
|
||||
Cake\Database\Schema\CachedCollection:
|
||||
cacheMetadata: ~
|
||||
cacheMetadata: null
|
||||
Cake\Database\Schema\TableSchema:
|
||||
options: ~
|
||||
options: null
|
||||
temporary:
|
||||
set: 'setTemporary'
|
||||
get: 'isTemporary'
|
||||
Cake\Database\TypeMap:
|
||||
defaults: ~
|
||||
types: ~
|
||||
defaults: null
|
||||
types: null
|
||||
Cake\Database\TypeMapTrait:
|
||||
typeMap: ~
|
||||
defaultTypes: ~
|
||||
typeMap: null
|
||||
defaultTypes: null
|
||||
Cake\ORM\Association:
|
||||
name: ~
|
||||
cascadeCallbacks: ~
|
||||
source: ~
|
||||
target: ~
|
||||
conditions: ~
|
||||
bindingKey: ~
|
||||
foreignKey: ~
|
||||
dependent: ~
|
||||
joinType: ~
|
||||
property: ~
|
||||
strategy: ~
|
||||
finder: ~
|
||||
name: null
|
||||
cascadeCallbacks: null
|
||||
source: null
|
||||
target: null
|
||||
conditions: null
|
||||
bindingKey: null
|
||||
foreignKey: null
|
||||
dependent: null
|
||||
joinType: null
|
||||
property: null
|
||||
strategy: null
|
||||
finder: null
|
||||
Cake\ORM\Association\BelongsToMany:
|
||||
targetForeignKey: ~
|
||||
saveStrategy: ~
|
||||
conditions: ~
|
||||
targetForeignKey: null
|
||||
saveStrategy: null
|
||||
conditions: null
|
||||
Cake\ORM\Association\HasMany:
|
||||
saveStrategy: ~
|
||||
foreignKey: ~
|
||||
sort: ~
|
||||
saveStrategy: null
|
||||
foreignKey: null
|
||||
sort: null
|
||||
Cake\ORM\Association\HasOne:
|
||||
foreignKey: ~
|
||||
foreignKey: null
|
||||
Cake\ORM\EagerLoadable:
|
||||
config: ~
|
||||
config: null
|
||||
canBeJoined:
|
||||
set: 'setCanBeJoined'
|
||||
get: 'canBeJoined'
|
||||
|
@ -124,9 +124,9 @@ services:
|
|||
set: 'enableAutoFields'
|
||||
get: 'isAutoFieldsEnabled'
|
||||
Cake\ORM\Locator\TableLocator:
|
||||
config: ~
|
||||
config: null
|
||||
Cake\ORM\Query:
|
||||
eagerLoader: ~
|
||||
eagerLoader: null
|
||||
hydrate:
|
||||
set: 'enableHydration'
|
||||
get: 'isHydrationEnabled'
|
||||
|
@ -134,56 +134,56 @@ services:
|
|||
set: 'enableAutoFields'
|
||||
get: 'isAutoFieldsEnabled'
|
||||
Cake\ORM\Table:
|
||||
table: ~
|
||||
alias: ~
|
||||
registryAlias: ~
|
||||
connection: ~
|
||||
schema: ~
|
||||
primaryKey: ~
|
||||
displayField: ~
|
||||
entityClass: ~
|
||||
table: null
|
||||
alias: null
|
||||
registryAlias: null
|
||||
connection: null
|
||||
schema: null
|
||||
primaryKey: null
|
||||
displayField: null
|
||||
entityClass: null
|
||||
Cake\Mailer\Email:
|
||||
from: ~
|
||||
sender: ~
|
||||
replyTo: ~
|
||||
readReceipt: ~
|
||||
returnPath: ~
|
||||
to: ~
|
||||
cc: ~
|
||||
bcc: ~
|
||||
charset: ~
|
||||
headerCharset: ~
|
||||
emailPattern: ~
|
||||
subject: ~
|
||||
from: null
|
||||
sender: null
|
||||
replyTo: null
|
||||
readReceipt: null
|
||||
returnPath: null
|
||||
to: null
|
||||
cc: null
|
||||
bcc: null
|
||||
charset: null
|
||||
headerCharset: null
|
||||
emailPattern: null
|
||||
subject: null
|
||||
# template: have to be changed manually, non A → B change + array case
|
||||
viewRender:
|
||||
set: 'setViewRenderer'
|
||||
get: 'getViewRenderer'
|
||||
viewVars: ~
|
||||
theme: ~
|
||||
helpers: ~
|
||||
emailFormat: ~
|
||||
transport: ~
|
||||
messageId: ~
|
||||
domain: ~
|
||||
attachments: ~
|
||||
configTransport: ~
|
||||
profile: ~
|
||||
viewVars: null
|
||||
theme: null
|
||||
helpers: null
|
||||
emailFormat: null
|
||||
transport: null
|
||||
messageId: null
|
||||
domain: null
|
||||
attachments: null
|
||||
configTransport: null
|
||||
profile: null
|
||||
Cake\Validation\Validator:
|
||||
provider: ~
|
||||
provider: null
|
||||
Cake\View\StringTemplateTrait:
|
||||
templates: ~
|
||||
templates: null
|
||||
Cake\View\ViewBuilder:
|
||||
templatePath: ~
|
||||
layoutPath: ~
|
||||
plugin: ~
|
||||
helpers: ~
|
||||
theme: ~
|
||||
template: ~
|
||||
layout: ~
|
||||
options: ~
|
||||
name: ~
|
||||
className: ~
|
||||
templatePath: null
|
||||
layoutPath: null
|
||||
plugin: null
|
||||
helpers: null
|
||||
theme: null
|
||||
template: null
|
||||
layout: null
|
||||
options: null
|
||||
name: null
|
||||
className: null
|
||||
autoLayout:
|
||||
set: 'enableAutoLayout'
|
||||
get: 'isAutoLayoutEnabled'
|
||||
|
|
|
@ -16,38 +16,38 @@ services:
|
|||
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
|
||||
$methodNamesByTypes:
|
||||
Cake\Cache\Cache:
|
||||
config: ~
|
||||
registry: ~
|
||||
config: null
|
||||
registry: null
|
||||
Cake\Console\Shell:
|
||||
io: ~
|
||||
io: null
|
||||
Cake\Console\ConsoleIo:
|
||||
outputAs: ~
|
||||
outputAs: null
|
||||
Cake\Console\ConsoleOutput:
|
||||
outputAs: ~
|
||||
outputAs: null
|
||||
Cake\Database\Connection:
|
||||
logger: ~
|
||||
logger: null
|
||||
Cake\Database\TypedResultInterface:
|
||||
returnType: ~
|
||||
returnType: null
|
||||
Cake\Database\TypedResultTrait:
|
||||
returnType: ~
|
||||
returnType: null
|
||||
Cake\Database\Log\LoggingStatement:
|
||||
logger: ~
|
||||
logger: null
|
||||
Cake\Datasource\ModelAwareTrait:
|
||||
modelType: ~
|
||||
modelType: null
|
||||
Cake\Database\Query:
|
||||
valueBinder:
|
||||
get: 'getValueBinder'
|
||||
set: 'valueBinder'
|
||||
Cake\Database\Schema\TableSchema:
|
||||
columnType: ~
|
||||
columnType: null
|
||||
Cake\Datasource\QueryTrait:
|
||||
eagerLoaded:
|
||||
get: 'isEagerLoaded'
|
||||
set: 'eagerLoaded'
|
||||
Cake\Event\EventDispatcherInterface:
|
||||
eventManager: ~
|
||||
eventManager: null
|
||||
Cake\Event\EventDispatcherTrait:
|
||||
eventManager: ~
|
||||
eventManager: null
|
||||
Cake\Error\Debugger:
|
||||
outputAs:
|
||||
get: 'getOutputFormat'
|
||||
|
@ -60,31 +60,31 @@ services:
|
|||
get: 'getCharset'
|
||||
set: 'withCharset'
|
||||
Cake\I18n\I18n:
|
||||
locale: ~
|
||||
translator: ~
|
||||
defaultLocale: ~
|
||||
defaultFormatter: ~
|
||||
locale: null
|
||||
translator: null
|
||||
defaultLocale: null
|
||||
defaultFormatter: null
|
||||
Cake\ORM\Association\BelongsToMany:
|
||||
sort: ~
|
||||
sort: null
|
||||
Cake\ORM\LocatorAwareTrait:
|
||||
tableLocator: ~
|
||||
tableLocator: null
|
||||
Cake\ORM\Table:
|
||||
validator: ~
|
||||
validator: null
|
||||
Cake\Routing\RouteBuilder:
|
||||
extensions: ~
|
||||
routeClass: ~
|
||||
extensions: null
|
||||
routeClass: null
|
||||
Cake\Routing\RouteCollection:
|
||||
extensions: ~
|
||||
extensions: null
|
||||
Cake\TestSuite\TestFixture:
|
||||
schema: ~
|
||||
schema: null
|
||||
Cake\Utility\Security:
|
||||
salt: ~
|
||||
salt: null
|
||||
Cake\View\View:
|
||||
template: ~
|
||||
layout: ~
|
||||
theme: ~
|
||||
templatePath: ~
|
||||
layoutPath: ~
|
||||
template: null
|
||||
layout: null
|
||||
theme: null
|
||||
templatePath: null
|
||||
layoutPath: null
|
||||
autoLayout:
|
||||
get: 'isAutoLayoutEnabled'
|
||||
set: 'enableAutoLayout'
|
||||
|
|
|
@ -84,4 +84,4 @@ services:
|
|||
set: 'setClassName'
|
||||
get: 'getClassName'
|
||||
|
||||
Rector\CakePHP\Rector\Name\ChangeSnakedFixtureNameToCamelRector: ~
|
||||
Rector\CakePHP\Rector\Name\ChangeSnakedFixtureNameToCamelRector: null
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
# <> → !=
|
||||
Rector\Celebrity\Rector\NotEqual\CommonNotEqualRector: ~
|
||||
Rector\Celebrity\Rector\NotEqual\CommonNotEqualRector: null
|
||||
|
||||
Rector\Renaming\Rector\Function_\RenameFunctionRector:
|
||||
$oldFunctionToNewFunction:
|
||||
|
@ -30,11 +30,11 @@ services:
|
|||
mbsubstr: 'mb_substr'
|
||||
|
||||
# settype($value, 'int') → (int) $value
|
||||
Rector\Celebrity\Rector\FuncCall\SetTypeToCastRector: ~
|
||||
Rector\Celebrity\Rector\FuncCall\SetTypeToCastRector: null
|
||||
|
||||
# class { var $value; } → class { public $value; }
|
||||
Rector\Php52\Rector\Property\VarToPublicPropertyRector: ~
|
||||
Rector\Php52\Rector\Property\VarToPublicPropertyRector: null
|
||||
|
||||
# false or true → false || true
|
||||
# false and true → false && true
|
||||
Rector\Celebrity\Rector\BooleanOp\LogicalToBooleanRector: ~
|
||||
Rector\Celebrity\Rector\BooleanOp\LogicalToBooleanRector: null
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
services:
|
||||
Rector\CodeQuality\Rector\Assign\CombinedAssignRector: ~
|
||||
Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector: ~
|
||||
Rector\CodeQuality\Rector\Foreach_\ForeachToInArrayRector: ~
|
||||
Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToCoalescingRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyFuncGetArgsCountRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyInArrayValuesRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector: ~
|
||||
Rector\CodeQuality\Rector\Identical\GetClassToInstanceOfRector: ~
|
||||
Rector\CodeQuality\Rector\Identical\SimplifyArraySearchRector: ~
|
||||
Rector\CodeQuality\Rector\Identical\SimplifyConditionsRector: ~
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfNotNullReturnRector: ~
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector: ~
|
||||
Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector: ~
|
||||
Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector: ~
|
||||
Rector\CodeQuality\Rector\Assign\CombinedAssignRector: null
|
||||
Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector: null
|
||||
Rector\CodeQuality\Rector\Foreach_\ForeachToInArrayRector: null
|
||||
Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToCoalescingRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyFuncGetArgsCountRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyInArrayValuesRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector: null
|
||||
Rector\CodeQuality\Rector\Identical\GetClassToInstanceOfRector: null
|
||||
Rector\CodeQuality\Rector\Identical\SimplifyArraySearchRector: null
|
||||
Rector\CodeQuality\Rector\Identical\SimplifyConditionsRector: null
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfNotNullReturnRector: null
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector: null
|
||||
Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector: null
|
||||
Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector: null
|
||||
|
||||
Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector: ~
|
||||
Rector\CodeQuality\Rector\BinaryOp\SimplifyDeMorganBinaryRector: ~
|
||||
Rector\CodeQuality\Rector\Ternary\SimplifyTautologyTernaryRector: ~
|
||||
Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToArrayFilterRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector: ~
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector: ~
|
||||
Rector\CodeQuality\Rector\Concat\JoinStringConcatRector: ~
|
||||
Rector\CodeQuality\Rector\If_\ConsecutiveNullCompareReturnsToNullCoalesceQueueRector: ~
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfIssetToNullCoalescingRector: ~
|
||||
Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector: ~
|
||||
Rector\CodeQuality\Rector\Equal\UseIdenticalOverEqualWithSameTypeRector: ~
|
||||
Rector\CodeQuality\Rector\Ternary\SimplifyDuplicatedTernaryRector: ~
|
||||
Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector: ~
|
||||
Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector: null
|
||||
Rector\CodeQuality\Rector\BinaryOp\SimplifyDeMorganBinaryRector: null
|
||||
Rector\CodeQuality\Rector\Ternary\SimplifyTautologyTernaryRector: null
|
||||
Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToArrayFilterRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector: null
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector: null
|
||||
Rector\CodeQuality\Rector\Concat\JoinStringConcatRector: null
|
||||
Rector\CodeQuality\Rector\If_\ConsecutiveNullCompareReturnsToNullCoalesceQueueRector: null
|
||||
Rector\CodeQuality\Rector\If_\SimplifyIfIssetToNullCoalescingRector: null
|
||||
Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector: null
|
||||
Rector\CodeQuality\Rector\Equal\UseIdenticalOverEqualWithSameTypeRector: null
|
||||
Rector\CodeQuality\Rector\Ternary\SimplifyDuplicatedTernaryRector: null
|
||||
Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector: null
|
||||
|
||||
Rector\CodeQuality\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector: ~
|
||||
Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector: ~
|
||||
Rector\CodeQuality\Rector\LogicalAnd\AndAssignsToSeparateLinesRector: ~
|
||||
Rector\CodeQuality\Rector\For_\ForToForeachRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector: ~
|
||||
Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\IsAWithStringWithThirdArgumentRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\StrlenZeroToIdenticalEmptyStringRector: ~
|
||||
Rector\CodeQuality\Rector\If_\RemoveAlwaysTrueConditionSetInConstructorRector: ~
|
||||
Rector\CodeQuality\Rector\Catch_\ThrowWithPreviousExceptionRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\RemoveSoleValueSprintfRector: ~
|
||||
Rector\CodeQuality\Rector\If_\ShortenElseIfRector: ~
|
||||
Rector\SOLID\Rector\ClassMethod\UseInterfaceOverImplementationInConstructorRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\ArrayMergeOfNonArraysToSimpleArrayRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector: ~
|
||||
Rector\CodeQuality\Rector\Ternary\ArrayKeyExistsTernaryThenValueToCoalescingRector: ~
|
||||
Rector\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector: ~
|
||||
Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector: ~
|
||||
Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector: ~
|
||||
Rector\CodeQuality\Rector\Foreach_\ForeachItemsAssignToEmptyArrayToAssignRector: ~
|
||||
Rector\CodeQuality\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector: null
|
||||
Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector: null
|
||||
Rector\CodeQuality\Rector\LogicalAnd\AndAssignsToSeparateLinesRector: null
|
||||
Rector\CodeQuality\Rector\For_\ForToForeachRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector: null
|
||||
Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\IsAWithStringWithThirdArgumentRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\StrlenZeroToIdenticalEmptyStringRector: null
|
||||
Rector\CodeQuality\Rector\If_\RemoveAlwaysTrueConditionSetInConstructorRector: null
|
||||
Rector\CodeQuality\Rector\Catch_\ThrowWithPreviousExceptionRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\RemoveSoleValueSprintfRector: null
|
||||
Rector\CodeQuality\Rector\If_\ShortenElseIfRector: null
|
||||
Rector\SOLID\Rector\ClassMethod\UseInterfaceOverImplementationInConstructorRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\ArrayMergeOfNonArraysToSimpleArrayRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector: null
|
||||
Rector\CodeQuality\Rector\Ternary\ArrayKeyExistsTernaryThenValueToCoalescingRector: null
|
||||
Rector\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector: null
|
||||
Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector: null
|
||||
Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector: null
|
||||
Rector\CodeQuality\Rector\Foreach_\ForeachItemsAssignToEmptyArrayToAssignRector: null
|
||||
|
|
|
@ -1,35 +1,35 @@
|
|||
services:
|
||||
Rector\CodingStyle\Rector\If_\NullableCompareToNullRector: ~
|
||||
Rector\CodingStyle\Rector\FuncCall\SimpleArrayCallableToStringRector: ~
|
||||
Rector\CodingStyle\Rector\Identical\IdenticalFalseToBooleanNotRector: ~
|
||||
Rector\CodingStyle\Rector\Switch_\BinarySwitchToIfElseRector: ~
|
||||
Rector\CodingStyle\Rector\FuncCall\ConsistentImplodeRector: ~
|
||||
Rector\CodingStyle\Rector\Use_\RemoveUnusedAliasRector: ~
|
||||
Rector\CodingStyle\Rector\If_\NullableCompareToNullRector: null
|
||||
Rector\CodingStyle\Rector\FuncCall\SimpleArrayCallableToStringRector: null
|
||||
Rector\CodingStyle\Rector\Identical\IdenticalFalseToBooleanNotRector: null
|
||||
Rector\CodingStyle\Rector\Switch_\BinarySwitchToIfElseRector: null
|
||||
Rector\CodingStyle\Rector\FuncCall\ConsistentImplodeRector: null
|
||||
Rector\CodingStyle\Rector\Use_\RemoveUnusedAliasRector: null
|
||||
|
||||
# requires configuration
|
||||
# Rector\CodingStyle\Rector\ClassMethod\YieldClassMethodToArrayClassMethodRector: ~
|
||||
# Rector\CodingStyle\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector: ~
|
||||
Rector\CodingStyle\Rector\String_\SymplifyQuoteEscapeRector: ~
|
||||
Rector\CodingStyle\Rector\ClassConst\SplitGroupedConstantsAndPropertiesRector: ~
|
||||
Rector\CodingStyle\Rector\String_\SplitStringClassConstantToClassConstFetchRector: ~
|
||||
Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector: ~
|
||||
# Rector\CodingStyle\Rector\ClassMethod\YieldClassMethodToArrayClassMethodRector: null
|
||||
# Rector\CodingStyle\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector: null
|
||||
Rector\CodingStyle\Rector\String_\SymplifyQuoteEscapeRector: null
|
||||
Rector\CodingStyle\Rector\ClassConst\SplitGroupedConstantsAndPropertiesRector: null
|
||||
Rector\CodingStyle\Rector\String_\SplitStringClassConstantToClassConstFetchRector: null
|
||||
Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector: null
|
||||
|
||||
# 'ClassName' → ClassName::class
|
||||
Rector\Php55\Rector\String_\StringClassNameToClassConstantRector: ~
|
||||
Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector: ~
|
||||
Rector\CodingStyle\Rector\Include_\FollowRequireByDirRector: ~
|
||||
Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector: ~
|
||||
Rector\CodingStyle\Rector\Assign\UseIncrementAssignRector: ~
|
||||
Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector: ~
|
||||
Rector\Php55\Rector\String_\StringClassNameToClassConstantRector: null
|
||||
Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector: null
|
||||
Rector\CodingStyle\Rector\Include_\FollowRequireByDirRector: null
|
||||
Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector: null
|
||||
Rector\CodingStyle\Rector\Assign\UseIncrementAssignRector: null
|
||||
Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector: null
|
||||
|
||||
Rector\CodingStyle\Rector\ClassConst\VarConstantCommentRector: ~
|
||||
Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector: ~
|
||||
Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector: ~
|
||||
Rector\CodingStyle\Rector\String_\ManualJsonStringToJsonEncodeArrayRector: ~
|
||||
Rector\CodingStyle\Rector\Class_\AddArrayDefaultToArrayPropertyRector: ~
|
||||
Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector: ~
|
||||
Rector\CodingStyle\Rector\FuncCall\CallUserFuncCallToVariadicRector: ~
|
||||
Rector\CodingStyle\Rector\FuncCall\VersionCompareFuncCallToConstantRector: ~
|
||||
Rector\CodingStyle\Rector\ClassConst\VarConstantCommentRector: null
|
||||
Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector: null
|
||||
Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector: null
|
||||
Rector\CodingStyle\Rector\String_\ManualJsonStringToJsonEncodeArrayRector: null
|
||||
Rector\CodingStyle\Rector\Class_\AddArrayDefaultToArrayPropertyRector: null
|
||||
Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector: null
|
||||
Rector\CodingStyle\Rector\FuncCall\CallUserFuncCallToVariadicRector: null
|
||||
Rector\CodingStyle\Rector\FuncCall\VersionCompareFuncCallToConstantRector: null
|
||||
Rector\CodingStyle\Rector\FuncCall\FunctionCallToConstantRector:
|
||||
$functionsToConstants:
|
||||
php_sapi_name: PHP_SAPI
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
# https://github.com/philip/MySQLConverterTool/blob/master/Converter.php
|
||||
# https://www.phpclasses.org/blog/package/9199/post/3-Smoothly-Migrate-your-PHP-Code-using-the-Old-MySQL-extension-to-MySQLi.html
|
||||
services:
|
||||
Rector\MysqlToMysqli\Rector\Assign\MysqlAssignToMysqliRector: ~
|
||||
Rector\MysqlToMysqli\Rector\FuncCall\MysqlFuncCallToMysqliRector: ~
|
||||
Rector\MysqlToMysqli\Rector\FuncCall\MysqlPConnectToMysqliConnectRector: ~
|
||||
Rector\MysqlToMysqli\Rector\Assign\MysqlAssignToMysqliRector: null
|
||||
Rector\MysqlToMysqli\Rector\FuncCall\MysqlFuncCallToMysqliRector: null
|
||||
Rector\MysqlToMysqli\Rector\FuncCall\MysqlPConnectToMysqliConnectRector: null
|
||||
|
||||
# first swap arguments, then rename
|
||||
Rector\Rector\Argument\SwapFuncCallArgumentsRector:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\DeadCode\Rector\Class_\RemoveUnusedClassesRector: ~
|
||||
Rector\DeadCode\Rector\Class_\RemoveUnusedClassesRector: null
|
||||
|
|
|
@ -1,32 +1,32 @@
|
|||
services:
|
||||
Rector\DeadCode\Rector\Stmt\RemoveDeadStmtRector: ~
|
||||
Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector: ~
|
||||
Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector: ~
|
||||
Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector: ~
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector: ~
|
||||
Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector: ~
|
||||
Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector: ~
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveUnusedParameterRector: ~
|
||||
Rector\DeadCode\Rector\Expression\SimplifyMirrorAssignRector: ~
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveOverriddenValuesRector: ~
|
||||
Rector\DeadCode\Rector\ClassConst\RemoveUnusedPrivateConstantRector: ~
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector: ~
|
||||
Rector\DeadCode\Rector\FunctionLike\RemoveCodeAfterReturnRector: ~
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveDeadConstructorRector: ~
|
||||
Rector\DeadCode\Rector\FunctionLike\RemoveDeadReturnRector: ~
|
||||
Rector\DeadCode\Rector\For_\RemoveDeadIfForeachForRector: ~
|
||||
Rector\DeadCode\Rector\BooleanAnd\RemoveAndTrueRector: ~
|
||||
Rector\DeadCode\Rector\MethodCall\RemoveDefaultArgumentValueRector: ~
|
||||
Rector\DeadCode\Rector\Concat\RemoveConcatAutocastRector: ~
|
||||
Rector\DeadCode\Rector\Stmt\RemoveDeadStmtRector: null
|
||||
Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector: null
|
||||
Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector: null
|
||||
Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector: null
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector: null
|
||||
Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector: null
|
||||
Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector: null
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveUnusedParameterRector: null
|
||||
Rector\DeadCode\Rector\Expression\SimplifyMirrorAssignRector: null
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveOverriddenValuesRector: null
|
||||
Rector\DeadCode\Rector\ClassConst\RemoveUnusedPrivateConstantRector: null
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector: null
|
||||
Rector\DeadCode\Rector\FunctionLike\RemoveCodeAfterReturnRector: null
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveDeadConstructorRector: null
|
||||
Rector\DeadCode\Rector\FunctionLike\RemoveDeadReturnRector: null
|
||||
Rector\DeadCode\Rector\For_\RemoveDeadIfForeachForRector: null
|
||||
Rector\DeadCode\Rector\BooleanAnd\RemoveAndTrueRector: null
|
||||
Rector\DeadCode\Rector\MethodCall\RemoveDefaultArgumentValueRector: null
|
||||
Rector\DeadCode\Rector\Concat\RemoveConcatAutocastRector: null
|
||||
|
||||
Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector: ~
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveDelegatingParentCallRector: ~
|
||||
Rector\DeadCode\Rector\Instanceof_\RemoveDuplicatedInstanceOfRector: ~
|
||||
Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector: ~
|
||||
Rector\DeadCode\Rector\Class_\RemoveUnusedDoctrineEntityMethodAndPropertyRector: ~
|
||||
Rector\DeadCode\Rector\Class_\RemoveSetterOnlyPropertyAndMethodCallRector: ~
|
||||
Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector: null
|
||||
Rector\DeadCode\Rector\ClassMethod\RemoveDelegatingParentCallRector: null
|
||||
Rector\DeadCode\Rector\Instanceof_\RemoveDuplicatedInstanceOfRector: null
|
||||
Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector: null
|
||||
Rector\DeadCode\Rector\Class_\RemoveUnusedDoctrineEntityMethodAndPropertyRector: null
|
||||
Rector\DeadCode\Rector\Class_\RemoveSetterOnlyPropertyAndMethodCallRector: null
|
||||
|
||||
Rector\DeadCode\Rector\Property\RemoveNullPropertyInitializationRector: ~
|
||||
Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector: ~
|
||||
Rector\DeadCode\Rector\If_\SimplifyIfElseWithSameContentRector: ~
|
||||
Rector\DeadCode\Rector\Ternary\TernaryToBooleanOrFalseToBooleanAndRector: ~
|
||||
Rector\DeadCode\Rector\Property\RemoveNullPropertyInitializationRector: null
|
||||
Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector: null
|
||||
Rector\DeadCode\Rector\If_\SimplifyIfElseWithSameContentRector: null
|
||||
Rector\DeadCode\Rector\Ternary\TernaryToBooleanOrFalseToBooleanAndRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
Rector\Doctrine\Rector\Class_\ManagerRegistryGetManagerToEntityManagerRector: ~
|
||||
Rector\DoctrineCodeQuality\Rector\Class_\InitializeDefaultEntityCollectionRector: ~
|
||||
Rector\Doctrine\Rector\Class_\ManagerRegistryGetManagerToEntityManagerRector: null
|
||||
Rector\DoctrineCodeQuality\Rector\Class_\InitializeDefaultEntityCollectionRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
# add uuid id property
|
||||
Rector\Doctrine\Rector\Class_\AddUuidToEntityWhereMissingRector: ~
|
||||
Rector\Doctrine\Rector\Class_\AddUuidToEntityWhereMissingRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\Doctrine\Rector\Class_\AlwaysInitializeUuidInEntityRector: ~
|
||||
Rector\Doctrine\Rector\Class_\AlwaysInitializeUuidInEntityRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
# add relations uuid properties
|
||||
Rector\Doctrine\Rector\Class_\AddUuidMirrorForRelationPropertyRector: ~
|
||||
Rector\Doctrine\Rector\Class_\AddUuidMirrorForRelationPropertyRector: null
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
services:
|
||||
# properties
|
||||
Rector\Doctrine\Rector\Property\AddUuidAnnotationsToIdPropertyRector: ~
|
||||
Rector\Doctrine\Rector\Property\RemoveTemporaryUuidColumnPropertyRector: ~
|
||||
Rector\Doctrine\Rector\Property\RemoveTemporaryUuidRelationPropertyRector: ~
|
||||
Rector\Doctrine\Rector\Property\AddUuidAnnotationsToIdPropertyRector: null
|
||||
Rector\Doctrine\Rector\Property\RemoveTemporaryUuidColumnPropertyRector: null
|
||||
Rector\Doctrine\Rector\Property\RemoveTemporaryUuidRelationPropertyRector: null
|
||||
|
||||
# methods
|
||||
Rector\Doctrine\Rector\ClassMethod\ChangeGetIdTypeToUuidRector: ~
|
||||
Rector\Doctrine\Rector\ClassMethod\ChangeSetIdTypeToUuidRector: ~
|
||||
Rector\Doctrine\Rector\ClassMethod\ChangeGetIdTypeToUuidRector: null
|
||||
Rector\Doctrine\Rector\ClassMethod\ChangeSetIdTypeToUuidRector: null
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
services:
|
||||
Rector\Doctrine\Rector\MethodCall\ChangeSetIdToUuidValueRector: ~
|
||||
Rector\Doctrine\Rector\MethodCall\ChangeGetUuidMethodCallToGetIdRector: ~
|
||||
Rector\Doctrine\Rector\ClassMethod\ChangeReturnTypeOfClassMethodWithGetIdRector: ~
|
||||
Rector\Doctrine\Rector\Identical\ChangeIdenticalUuidToEqualsMethodCallRector: ~
|
||||
Rector\Doctrine\Rector\MethodCall\ChangeSetIdToUuidValueRector: null
|
||||
Rector\Doctrine\Rector\MethodCall\ChangeGetUuidMethodCallToGetIdRector: null
|
||||
Rector\Doctrine\Rector\ClassMethod\ChangeReturnTypeOfClassMethodWithGetIdRector: null
|
||||
Rector\Doctrine\Rector\Identical\ChangeIdenticalUuidToEqualsMethodCallRector: null
|
||||
|
||||
# add Uuid type declarations
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedParamTypeRector: ~
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector: ~
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedParamTypeRector: null
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector: null
|
||||
|
|
|
@ -12,4 +12,4 @@ services:
|
|||
$positionsByMethodNameByClassType:
|
||||
Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister:
|
||||
getSelectJoinColumnSQL:
|
||||
4: ~
|
||||
4: null
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# https://github.com/ongr-io/ElasticsearchDSL/blob/5.x/CHANGELOG.md
|
||||
services:
|
||||
Rector\ElasticSearchDSL\Rector\MethodCall\MigrateFilterToQueryRector: ~
|
||||
Rector\ElasticSearchDSL\Rector\MethodCall\MigrateFilterToQueryRector: null
|
||||
|
||||
Rector\Renaming\Rector\Class_\RenameClassRector:
|
||||
$oldToNewClasses:
|
||||
|
|
|
@ -2,11 +2,11 @@ imports:
|
|||
- { resource: 'nette-to-symfony/*.yaml' }
|
||||
|
||||
services:
|
||||
Rector\NetteToSymfony\Rector\FileSystem\DeleteFactoryInterfaceRector: ~
|
||||
Rector\NetteToSymfony\Rector\FileSystem\DeleteFactoryInterfaceRector: null
|
||||
|
||||
Rector\NetteToSymfony\Rector\MethodCall\FromHttpRequestGetHeaderToHeadersGetRector: ~
|
||||
Rector\NetteToSymfony\Rector\MethodCall\FromRequestGetParameterToAttributesGetRector: ~
|
||||
Rector\NetteToSymfony\Rector\ClassMethod\RouterListToControllerAnnotationsRector: ~
|
||||
Rector\NetteToSymfony\Rector\MethodCall\FromHttpRequestGetHeaderToHeadersGetRector: null
|
||||
Rector\NetteToSymfony\Rector\MethodCall\FromRequestGetParameterToAttributesGetRector: null
|
||||
Rector\NetteToSymfony\Rector\ClassMethod\RouterListToControllerAnnotationsRector: null
|
||||
|
||||
# run(Request $appRequest): IResponse -> run(Request $appRequest): \Symfony\Component\HttpFoundation\Response
|
||||
Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector:
|
||||
|
@ -120,4 +120,4 @@ services:
|
|||
PATCH: Symfony\Component\HttpFoundation\Request::METHOD_PATCH
|
||||
OPTIONS: Symfony\Component\HttpFoundation\Request::METHOD_OPTIONS
|
||||
|
||||
Rector\NetteToSymfony\Rector\Assign\FormControlToControllerAndFormTypeRector: ~
|
||||
Rector\NetteToSymfony\Rector\Assign\FormControlToControllerAndFormTypeRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\NetteToSymfony\Rector\ClassMethod\RenameEventNamesInEventSubscriberRector: ~
|
||||
Rector\NetteToSymfony\Rector\ClassMethod\RenameEventNamesInEventSubscriberRector: null
|
||||
|
|
|
@ -21,4 +21,4 @@ services:
|
|||
Kdyby\Events\Subscriber: 'Symfony\Component\EventDispatcher\EventSubscriberInterface'
|
||||
Kdyby\Translation\Translator: 'Symfony\Contracts\Translation\TranslatorInterface'
|
||||
|
||||
Rector\NetteToSymfony\Rector\MethodCall\WrapTransParameterNameRector: ~
|
||||
Rector\NetteToSymfony\Rector\MethodCall\WrapTransParameterNameRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\NetteToSymfony\Rector\Class_\NetteControlToSymfonyControllerRector: ~
|
||||
Rector\NetteToSymfony\Rector\Class_\NetteControlToSymfonyControllerRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\NetteToSymfony\Rector\Class_\NetteFormToSymfonyFormRector: ~
|
||||
Rector\NetteToSymfony\Rector\Class_\NetteFormToSymfonyFormRector: null
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
services:
|
||||
# rename class, rename extends, remove include __DIR__, remove (new TestCase())->run())
|
||||
Rector\NetteTesterToPHPUnit\Rector\Class_\NetteTesterClassToPHPUnitClassRector: ~
|
||||
Rector\NetteTesterToPHPUnit\Rector\Class_\NetteTesterClassToPHPUnitClassRector: null
|
||||
|
||||
# Assert::true → self::assertTrue() | PHPUnit\Framework\Assert::assertTrue()
|
||||
Rector\NetteTesterToPHPUnit\Rector\StaticCall\NetteAssertToPHPUnitAssertRector: ~
|
||||
Rector\NetteTesterToPHPUnit\Rector\StaticCall\NetteAssertToPHPUnitAssertRector: null
|
||||
|
||||
# Some.phpt → SomeTest.php
|
||||
Rector\NetteTesterToPHPUnit\Rector\RenameTesterTestToPHPUnitToTestFileRector: ~
|
||||
Rector\NetteTesterToPHPUnit\Rector\RenameTesterTestToPHPUnitToTestFileRector: null
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# see: https://gnugat.github.io/2015/09/23/phpunit-with-phpspec.html
|
||||
services:
|
||||
# 1. first convert mocks
|
||||
Rector\PhpSpecToPHPUnit\Rector\MethodCall\PhpSpecMocksToPHPUnitMocksRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\MethodCall\PhpSpecPromisesToPHPUnitAssertRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\MethodCall\PhpSpecMocksToPHPUnitMocksRector: null
|
||||
Rector\PhpSpecToPHPUnit\Rector\MethodCall\PhpSpecPromisesToPHPUnitAssertRector: null
|
||||
|
||||
# 2. then methods
|
||||
Rector\PhpSpecToPHPUnit\Rector\ClassMethod\PhpSpecMethodToPHPUnitMethodRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\ClassMethod\PhpSpecMethodToPHPUnitMethodRector: null
|
||||
|
||||
# 3. then the class itself
|
||||
Rector\PhpSpecToPHPUnit\Rector\Class_\PhpSpecClassToPHPUnitClassRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\Class_\AddMockPropertiesRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\Class_\PhpSpecClassToPHPUnitClassRector: null
|
||||
Rector\PhpSpecToPHPUnit\Rector\Class_\AddMockPropertiesRector: null
|
||||
|
||||
Rector\PhpSpecToPHPUnit\Rector\ClassMethod\MockVariableToPropertyFetchRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\ClassMethod\MockVariableToPropertyFetchRector: null
|
||||
|
||||
Rector\PhpSpecToPHPUnit\Rector\FileSystem\RenameSpecFileToTestFileRector: ~
|
||||
Rector\PhpSpecToPHPUnit\Rector\FileSystem\RenameSpecFileToTestFileRector: null
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# from Zend 1.x (?) to Symfony 4.3 (2019)
|
||||
services:
|
||||
Rector\ZendToSymfony\Rector\Class_\ChangeZendControllerClassToSymfonyControllerClassRector: ~
|
||||
Rector\ZendToSymfony\Rector\Class_\ChangeZendControllerClassToSymfonyControllerClassRector: null
|
||||
|
||||
Rector\ZendToSymfony\Rector\ClassMethod\GetParamToClassMethodParameterAndRouteRector: ~
|
||||
Rector\ZendToSymfony\Rector\ClassMethod\ThisRequestToRequestParameterRector: ~
|
||||
Rector\ZendToSymfony\Rector\ClassMethod\ThisViewToThisRenderResponseRector: ~
|
||||
Rector\ZendToSymfony\Rector\Expression\RedirectorToRedirectToUrlRector: ~
|
||||
Rector\ZendToSymfony\Rector\MethodCall\ThisHelperToServiceMethodCallRector: ~
|
||||
Rector\ZendToSymfony\Rector\ClassMethod\GetParamToClassMethodParameterAndRouteRector: null
|
||||
Rector\ZendToSymfony\Rector\ClassMethod\ThisRequestToRequestParameterRector: null
|
||||
Rector\ZendToSymfony\Rector\ClassMethod\ThisViewToThisRenderResponseRector: null
|
||||
Rector\ZendToSymfony\Rector\Expression\RedirectorToRedirectToUrlRector: null
|
||||
Rector\ZendToSymfony\Rector\MethodCall\ThisHelperToServiceMethodCallRector: null
|
||||
|
||||
Rector\ZendToSymfony\Rector\Include_\RemoveAutoloadingIncludeRector: ~
|
||||
Rector\ZendToSymfony\Rector\Include_\RemoveAutoloadingIncludeRector: null
|
||||
|
|
|
@ -9,8 +9,8 @@ parameters:
|
|||
services:
|
||||
# both uses "%classes_to_defluent%
|
||||
# covers https://github.com/guzzle/guzzle/commit/668209c895049759377593eed129e0949d9565b7#diff-810cdcfdd8a6b9e1fc0d1e96d7786874
|
||||
Rector\Rector\MethodBody\ReturnThisRemoveRector: ~
|
||||
Rector\Rector\MethodBody\FluentReplaceRector: ~
|
||||
Rector\Rector\MethodBody\ReturnThisRemoveRector: null
|
||||
Rector\Rector\MethodBody\FluentReplaceRector: null
|
||||
|
||||
Rector\Rector\Function_\FunctionToMethodCallRector:
|
||||
$functionToMethodCall:
|
||||
|
@ -24,7 +24,7 @@ services:
|
|||
GuzzleHttp\Pool:
|
||||
batch: 'GuzzleHttp\Pool\batch'
|
||||
|
||||
Rector\Guzzle\Rector\MethodCall\MessageAsArrayRector: ~
|
||||
Rector\Guzzle\Rector\MethodCall\MessageAsArrayRector: null
|
||||
|
||||
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
|
||||
$oldToNewMethodsByClass:
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
services:
|
||||
Rector\DoctrineGedmoToKnplabs\Rector\Class_\TimestampableBehaviorRector: null
|
||||
Rector\DoctrineGedmoToKnplabs\Rector\Class_\SluggableBehaviorRector: null
|
||||
Rector\DoctrineGedmoToKnplabs\Rector\Class_\TreeBehaviorRector: ~
|
||||
Rector\DoctrineGedmoToKnplabs\Rector\Class_\TranslationBehaviorRector: ~
|
||||
Rector\DoctrineGedmoToKnplabs\Rector\Class_\TreeBehaviorRector: null
|
||||
Rector\DoctrineGedmoToKnplabs\Rector\Class_\TranslationBehaviorRector: null
|
||||
|
|
|
@ -3,9 +3,9 @@ imports:
|
|||
- { resource: 'static/array-str-functions-to-static-call.yaml'}
|
||||
|
||||
services:
|
||||
Rector\Laravel\Rector\StaticCall\FacadeStaticCallToConstructorInjectionRector: ~
|
||||
Rector\Laravel\Rector\StaticCall\RequestStaticValidateToInjectRector: ~
|
||||
Rector\Laravel\Rector\FuncCall\HelperFunctionToConstructorInjectionRector: ~
|
||||
Rector\Laravel\Rector\StaticCall\FacadeStaticCallToConstructorInjectionRector: null
|
||||
Rector\Laravel\Rector\StaticCall\RequestStaticValidateToInjectRector: null
|
||||
Rector\Laravel\Rector\FuncCall\HelperFunctionToConstructorInjectionRector: null
|
||||
|
||||
Rector\Rector\FuncCall\FunctionToNewRector:
|
||||
$functionToNew:
|
||||
|
|
|
@ -21,7 +21,7 @@ services:
|
|||
name: 'request'
|
||||
type: 'Illuminate\Http\Illuminate\Http'
|
||||
|
||||
Rector\Laravel\Rector\StaticCall\Redirect301ToPermanentRedirectRector: ~
|
||||
Rector\Laravel\Rector\StaticCall\Redirect301ToPermanentRedirectRector: null
|
||||
|
||||
Rector\Rector\Argument\ArgumentRemoverRector:
|
||||
$positionsByMethodNameByClassType:
|
||||
|
|
|
@ -5,7 +5,7 @@ imports:
|
|||
|
||||
# see: https://laravel.com/docs/5.8/upgrade
|
||||
services:
|
||||
Rector\Laravel\Rector\StaticCall\MinutesToSecondsInCacheRector: ~
|
||||
Rector\Laravel\Rector\StaticCall\MinutesToSecondsInCacheRector: null
|
||||
|
||||
Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector:
|
||||
$typehintForMethodByClass:
|
||||
|
|
|
@ -8,7 +8,7 @@ services:
|
|||
|
||||
# https://github.com/laravel/framework/commit/67a38ba0fa2acfbd1f4af4bf7d462bb4419cc091
|
||||
# covered by
|
||||
Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector: ~
|
||||
Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector: null
|
||||
|
||||
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
|
||||
$oldToNewMethodsByClass:
|
||||
|
|
|
@ -3,7 +3,7 @@ imports:
|
|||
|
||||
services:
|
||||
# Control class has remove __construct(), e.g. https://github.com/Pixidos/GPWebPay/pull/16/files#diff-fdc8251950f85c5467c63c249df05786
|
||||
Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector: ~
|
||||
Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector: null
|
||||
|
||||
Rector\Renaming\Rector\Class_\RenameClassRector:
|
||||
$oldToNewClasses:
|
||||
|
@ -29,5 +29,5 @@ services:
|
|||
Nette\DI\Definitions\Definition:
|
||||
isAutowired: 'getAutowired'
|
||||
|
||||
Rector\Nette\Rector\MethodCall\AddDatePickerToDateControlRector: ~
|
||||
Rector\Nette\Rector\MethodCall\SetClassWithArgumentToSetFactoryRector: ~
|
||||
Rector\Nette\Rector\MethodCall\AddDatePickerToDateControlRector: null
|
||||
Rector\Nette\Rector\MethodCall\SetClassWithArgumentToSetFactoryRector: null
|
||||
|
|
|
@ -8,10 +8,10 @@ services:
|
|||
rmdir: ['Nette\Utils\FileSystem', 'delete']
|
||||
|
||||
# strings
|
||||
Rector\Nette\Rector\NotIdentical\StrposToStringsContainsRector: ~
|
||||
Rector\Nette\Rector\FuncCall\SubstrStrlenFunctionToNetteUtilsStringsRector: ~
|
||||
Rector\Nette\Rector\Identical\StartsWithFunctionToNetteUtilsStringsRector: ~
|
||||
Rector\Nette\Rector\Identical\EndsWithFunctionToNetteUtilsStringsRector: ~
|
||||
Rector\Nette\Rector\FuncCall\PregFunctionToNetteUtilsStringsRector: ~
|
||||
Rector\Nette\Rector\FuncCall\JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRector: ~
|
||||
Rector\Nette\Rector\FuncCall\FilePutContentsToFileSystemWriteRector: ~
|
||||
Rector\Nette\Rector\NotIdentical\StrposToStringsContainsRector: null
|
||||
Rector\Nette\Rector\FuncCall\SubstrStrlenFunctionToNetteUtilsStringsRector: null
|
||||
Rector\Nette\Rector\Identical\StartsWithFunctionToNetteUtilsStringsRector: null
|
||||
Rector\Nette\Rector\Identical\EndsWithFunctionToNetteUtilsStringsRector: null
|
||||
Rector\Nette\Rector\FuncCall\PregFunctionToNetteUtilsStringsRector: null
|
||||
Rector\Nette\Rector\FuncCall\JsonDecodeEncodeToNetteUtilsJsonDecodeEncodeRector: null
|
||||
Rector\Nette\Rector\FuncCall\FilePutContentsToFileSystemWriteRector: null
|
||||
|
|
|
@ -119,6 +119,6 @@ services:
|
|||
FILTER_SPECIAL_CHARS: 'FILTER_SPECIAL'
|
||||
FILTER_ALPHANUM: 'FILTER_ALNUM'
|
||||
|
||||
Rector\Phalcon\Rector\Assign\FlashWithCssClassesToExtraCallRector: ~
|
||||
Rector\Phalcon\Rector\Assign\NewApplicationToToFactoryWithDefaultContainerRector: ~
|
||||
Rector\Phalcon\Rector\MethodCall\AddRequestToHandleMethodCallRector: ~
|
||||
Rector\Phalcon\Rector\Assign\FlashWithCssClassesToExtraCallRector: null
|
||||
Rector\Phalcon\Rector\Assign\NewApplicationToToFactoryWithDefaultContainerRector: null
|
||||
Rector\Phalcon\Rector\MethodCall\AddRequestToHandleMethodCallRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
Rector\Php52\Rector\Property\VarToPublicPropertyRector: ~
|
||||
Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector: ~
|
||||
Rector\Php52\Rector\Property\VarToPublicPropertyRector: null
|
||||
Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
Rector\Php53\Rector\Ternary\TernaryToElvisRector: ~
|
||||
Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector: ~
|
||||
Rector\Php53\Rector\Ternary\TernaryToElvisRector: null
|
||||
Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector: null
|
||||
|
|
|
@ -3,5 +3,5 @@ services:
|
|||
$oldFunctionToNewFunction:
|
||||
mysqli_param_count: 'mysqli_stmt_param_count'
|
||||
|
||||
Rector\Php54\Rector\FuncCall\RemoveReferenceFromCallRector: ~
|
||||
Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector: ~
|
||||
Rector\Php54\Rector\FuncCall\RemoveReferenceFromCallRector: null
|
||||
Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\Php55\Rector\String_\StringClassNameToClassConstantRector: ~
|
||||
Rector\Php55\Rector\String_\StringClassNameToClassConstantRector: null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
Rector\Php56\Rector\FuncCall\PowToExpRector: ~
|
||||
Rector\Php56\Rector\FuncCall\PowToExpRector: null
|
||||
|
||||
Rector\Renaming\Rector\Function_\RenameFunctionRector:
|
||||
$oldFunctionToNewFunction:
|
||||
|
@ -40,4 +40,4 @@ services:
|
|||
ocistatementtype: 'oci_statement_type'
|
||||
|
||||
# inspired by level in psalm - https://github.com/vimeo/psalm/blob/82e0bcafac723fdf5007a31a7ae74af1736c9f6f/tests/FileManipulationTest.php#L1063
|
||||
Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector: ~
|
||||
Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector: null
|
||||
|
|
|
@ -2,24 +2,24 @@ imports:
|
|||
- { resource: "../database-migration/mysql-to-mysqli.yaml" }
|
||||
|
||||
services:
|
||||
Rector\Php70\Rector\FunctionLike\Php4ConstructorRector: ~
|
||||
Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector: ~
|
||||
Rector\Php70\Rector\FuncCall\RandomFunctionRector: ~
|
||||
Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector: ~
|
||||
Rector\Php70\Rector\FuncCall\MultiDirnameRector: ~
|
||||
Rector\Php70\Rector\List_\ListSplitStringRector: ~
|
||||
Rector\Php70\Rector\List_\EmptyListRector: ~
|
||||
Rector\Php70\Rector\FunctionLike\Php4ConstructorRector: null
|
||||
Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector: null
|
||||
Rector\Php70\Rector\FuncCall\RandomFunctionRector: null
|
||||
Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector: null
|
||||
Rector\Php70\Rector\FuncCall\MultiDirnameRector: null
|
||||
Rector\Php70\Rector\List_\ListSplitStringRector: null
|
||||
Rector\Php70\Rector\List_\EmptyListRector: null
|
||||
|
||||
# be careful, run this just once, since it can keep swapping order back and forth
|
||||
Rector\Php70\Rector\List_\ListSwapArrayOrderRector: ~
|
||||
Rector\Php70\Rector\List_\ListSwapArrayOrderRector: null
|
||||
|
||||
Rector\Php70\Rector\FuncCall\CallUserMethodRector : ~
|
||||
Rector\Php70\Rector\FuncCall\EregToPregMatchRector: ~
|
||||
Rector\Php70\Rector\Switch_\ReduceMultipleDefaultSwitchRector: ~
|
||||
Rector\Php70\Rector\Ternary\TernaryToSpaceshipRector: ~
|
||||
Rector\Php70\Rector\If_\IfToSpaceshipRector: ~
|
||||
Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector: ~
|
||||
Rector\Php70\Rector\MethodCall\ThisCallOnStaticMethodToStaticCallRector: ~
|
||||
Rector\Php70\Rector\FuncCall\CallUserMethodRector : null
|
||||
Rector\Php70\Rector\FuncCall\EregToPregMatchRector: null
|
||||
Rector\Php70\Rector\Switch_\ReduceMultipleDefaultSwitchRector: null
|
||||
Rector\Php70\Rector\Ternary\TernaryToSpaceshipRector: null
|
||||
Rector\Php70\Rector\If_\IfToSpaceshipRector: null
|
||||
Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector: null
|
||||
Rector\Php70\Rector\MethodCall\ThisCallOnStaticMethodToStaticCallRector: null
|
||||
|
||||
Rector\Php70\Rector\Break_\BreakNotInLoopOrSwitchToReturnRector: ~
|
||||
Rector\Php70\Rector\FuncCall\RenameMktimeWithoutArgsToTimeRector: ~
|
||||
Rector\Php70\Rector\Break_\BreakNotInLoopOrSwitchToReturnRector: null
|
||||
Rector\Php70\Rector\FuncCall\RenameMktimeWithoutArgsToTimeRector: null
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
services:
|
||||
Rector\Php71\Rector\BinaryOp\IsIterableRector: ~
|
||||
Rector\Php71\Rector\BinaryOp\IsIterableRector: null
|
||||
|
||||
Rector\Php71\Rector\Name\ReservedObjectRector:
|
||||
$reservedKeywordsToReplacements:
|
||||
Object: 'BaseObject'
|
||||
|
||||
Rector\Php71\Rector\TryCatch\MultiExceptionCatchRector: ~
|
||||
Rector\Php71\Rector\Assign\AssignArrayToStringRector: ~
|
||||
Rector\Php71\Rector\FuncCall\CountOnNullRector: ~
|
||||
Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector: ~
|
||||
Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector: ~
|
||||
Rector\Php71\Rector\List_\ListToArrayDestructRector: ~
|
||||
Rector\Php71\Rector\TryCatch\MultiExceptionCatchRector: null
|
||||
Rector\Php71\Rector\Assign\AssignArrayToStringRector: null
|
||||
Rector\Php71\Rector\FuncCall\CountOnNullRector: null
|
||||
Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector: null
|
||||
Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector: null
|
||||
Rector\Php71\Rector\List_\ListToArrayDestructRector: null
|
||||
|
|
|
@ -3,10 +3,10 @@ parameters:
|
|||
enable_object_type: true
|
||||
|
||||
services:
|
||||
Rector\Php72\Rector\Each\WhileEachToForeachRector: ~
|
||||
Rector\Php72\Rector\Each\ListEachRector: ~
|
||||
Rector\Php72\Rector\Unset_\UnsetCastRector: ~
|
||||
Rector\Php72\Rector\ConstFetch\BarewordStringRector: ~
|
||||
Rector\Php72\Rector\Each\WhileEachToForeachRector: null
|
||||
Rector\Php72\Rector\Each\ListEachRector: null
|
||||
Rector\Php72\Rector\Unset_\UnsetCastRector: null
|
||||
Rector\Php72\Rector\ConstFetch\BarewordStringRector: null
|
||||
|
||||
Rector\Renaming\Rector\Function_\RenameFunctionRector:
|
||||
$oldFunctionToNewFunction:
|
||||
|
@ -16,9 +16,9 @@ services:
|
|||
gmp_random: 'gmp_random_bits' # or gmp_random_range
|
||||
read_exif_data: 'exif_read_data'
|
||||
|
||||
Rector\Php72\Rector\FuncCall\GetClassOnNullRector: ~
|
||||
Rector\Php72\Rector\FuncCall\IsObjectOnIncompleteClassRector: ~
|
||||
Rector\Php72\Rector\FuncCall\ParseStrWithResultArgumentRector: ~
|
||||
Rector\Php72\Rector\FuncCall\StringsAssertNakedRector: ~
|
||||
Rector\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector: ~
|
||||
Rector\Php72\Rector\FuncCall\StringifyDefineRector: ~
|
||||
Rector\Php72\Rector\FuncCall\GetClassOnNullRector: null
|
||||
Rector\Php72\Rector\FuncCall\IsObjectOnIncompleteClassRector: null
|
||||
Rector\Php72\Rector\FuncCall\ParseStrWithResultArgumentRector: null
|
||||
Rector\Php72\Rector\FuncCall\StringsAssertNakedRector: null
|
||||
Rector\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector: null
|
||||
Rector\Php72\Rector\FuncCall\StringifyDefineRector: null
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
services:
|
||||
Rector\Php73\Rector\BinaryOp\IsCountableRector: ~
|
||||
Rector\Php73\Rector\FuncCall\ArrayKeyFirstLastRector: ~
|
||||
Rector\Php73\Rector\FuncCall\SensitiveDefineRector: ~
|
||||
Rector\Php73\Rector\ConstFetch\SensitiveConstantNameRector: ~
|
||||
Rector\Php73\Rector\String_\SensitiveHereNowDocRector: ~
|
||||
Rector\Php73\Rector\BinaryOp\IsCountableRector: null
|
||||
Rector\Php73\Rector\FuncCall\ArrayKeyFirstLastRector: null
|
||||
Rector\Php73\Rector\FuncCall\SensitiveDefineRector: null
|
||||
Rector\Php73\Rector\ConstFetch\SensitiveConstantNameRector: null
|
||||
Rector\Php73\Rector\String_\SensitiveHereNowDocRector: null
|
||||
|
||||
# https://wiki.php.net/rfc/deprecations_php_7_3
|
||||
Rector\Renaming\Rector\Function_\RenameFunctionRector:
|
||||
|
@ -23,7 +23,7 @@ services:
|
|||
mbereg_search_getregs: 'mb_ereg_search_getregs'
|
||||
mbereg_search_getpos: 'mb_ereg_search_getpos'
|
||||
|
||||
Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector: ~
|
||||
Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector: ~
|
||||
Rector\Php73\Rector\FuncCall\RegexDashEscapeRector: ~
|
||||
Rector\Php73\Rector\FuncCall\RemoveMissingCompactVariableRector: ~
|
||||
Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector: null
|
||||
Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector: null
|
||||
Rector\Php73\Rector\FuncCall\RegexDashEscapeRector: null
|
||||
Rector\Php73\Rector\FuncCall\RemoveMissingCompactVariableRector: null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
Rector\Php74\Rector\Property\TypedPropertyRector: ~
|
||||
Rector\Php74\Rector\Property\TypedPropertyRector: null
|
||||
|
||||
Rector\Renaming\Rector\Function_\RenameFunctionRector:
|
||||
$oldFunctionToNewFunction:
|
||||
|
@ -9,16 +9,16 @@ services:
|
|||
apache_request_headers: 'getallheaders'
|
||||
hebrevc: ['nl2br', 'hebrev']
|
||||
|
||||
Rector\Php74\Rector\FuncCall\ArrayKeyExistsOnPropertyRector: ~
|
||||
Rector\Php74\Rector\FuncCall\FilterVarToAddSlashesRector: ~
|
||||
Rector\Php74\Rector\StaticCall\ExportToReflectionFunctionRector: ~
|
||||
Rector\Php74\Rector\MagicConstClass\ClassConstantToSelfClassRector: ~
|
||||
Rector\Php74\Rector\FuncCall\GetCalledClassToStaticClassRector: ~
|
||||
Rector\Php74\Rector\FuncCall\MbStrrposEncodingArgumentPositionRector: ~
|
||||
Rector\Php74\Rector\Double\RealToFloatTypeCastRector: ~
|
||||
Rector\Php74\Rector\Assign\NullCoalescingOperatorRector: ~
|
||||
Rector\Php74\Rector\Function_\ReservedFnFunctionRector: ~
|
||||
Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector: ~
|
||||
Rector\Php74\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector: ~
|
||||
Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector: ~
|
||||
Rector\Php74\Rector\MethodCall\ChangeReflectionTypeToStringToGetNameRector: ~
|
||||
Rector\Php74\Rector\FuncCall\ArrayKeyExistsOnPropertyRector: null
|
||||
Rector\Php74\Rector\FuncCall\FilterVarToAddSlashesRector: null
|
||||
Rector\Php74\Rector\StaticCall\ExportToReflectionFunctionRector: null
|
||||
Rector\Php74\Rector\MagicConstClass\ClassConstantToSelfClassRector: null
|
||||
Rector\Php74\Rector\FuncCall\GetCalledClassToStaticClassRector: null
|
||||
Rector\Php74\Rector\FuncCall\MbStrrposEncodingArgumentPositionRector: null
|
||||
Rector\Php74\Rector\Double\RealToFloatTypeCastRector: null
|
||||
Rector\Php74\Rector\Assign\NullCoalescingOperatorRector: null
|
||||
Rector\Php74\Rector\Function_\ReservedFnFunctionRector: null
|
||||
Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector: null
|
||||
Rector\Php74\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector: null
|
||||
Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector: null
|
||||
Rector\Php74\Rector\MethodCall\ChangeReflectionTypeToStringToGetNameRector: null
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
services:
|
||||
Rector\PHPStan\Rector\Cast\RecastingRemovalRector: ~
|
||||
Rector\PHPStan\Rector\Assign\PHPStormVarAnnotationRector: ~
|
||||
Rector\PHPStan\Rector\Node\RemoveNonExistingVarAnnotationRector: ~
|
||||
Rector\PHPStan\Rector\Cast\RecastingRemovalRector: null
|
||||
Rector\PHPStan\Rector\Assign\PHPStormVarAnnotationRector: null
|
||||
Rector\PHPStan\Rector\Node\RemoveNonExistingVarAnnotationRector: null
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\MethodCall\RemoveExpectAnyFromMockRector: ~
|
||||
Rector\PHPUnit\Rector\Class_\AddSeeTestAnnotationRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\RemoveExpectAnyFromMockRector: null
|
||||
Rector\PHPUnit\Rector\Class_\AddSeeTestAnnotationRector: null
|
||||
|
||||
# [configurable]
|
||||
# Rector\PHPUnit\Rector\Class_\ArrayArgumentInTestToDataProviderRector: ~
|
||||
# Rector\PHPUnit\Rector\Class_\ArrayArgumentInTestToDataProviderRector: null
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
services:
|
||||
# handles 2nd and 3rd argument of setExpectedException
|
||||
Rector\PHPUnit\Rector\DelegateExceptionArgumentsRector: ~
|
||||
Rector\PHPUnit\Rector\DelegateExceptionArgumentsRector: null
|
||||
|
||||
# @expectedException → $this->expectException()
|
||||
Rector\PHPUnit\Rector\ExceptionAnnotationRector: ~
|
||||
Rector\PHPUnit\Rector\ExceptionAnnotationRector: null
|
||||
|
||||
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
|
||||
$oldToNewMethodsByClass:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\Class_\SelfContainerGetMethodCallFromTestToInjectPropertyRector: ~
|
||||
Rector\PHPUnit\Rector\Class_\SelfContainerGetMethodCallFromTestToInjectPropertyRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\MethodCall\UseSpecificWillMethodRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\UseSpecificWillMethodRector: null
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertNotOperatorRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertFalseStrposToContainsRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertTrueFalseInternalTypeToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertCompareToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertIssetToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertInstanceOfComparisonRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertPropertyExistsRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertRegExpRector: ~
|
||||
Rector\PHPUnit\Rector\Foreach_\SimplifyForeachInstanceOfRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertNotOperatorRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertFalseStrposToContainsRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertTrueFalseInternalTypeToSpecificMethodRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertCompareToSpecificMethodRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertIssetToSpecificMethodRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertInstanceOfComparisonRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertPropertyExistsRector: null
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertRegExpRector: null
|
||||
Rector\PHPUnit\Rector\Foreach_\SimplifyForeachInstanceOfRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\GetMockRector: ~
|
||||
Rector\PHPUnit\Rector\GetMockRector: null
|
||||
|
|
|
@ -9,4 +9,4 @@ services:
|
|||
# exclude this class, since it has no namespaced replacement
|
||||
- 'PHPUnit_Framework_MockObject_MockObject'
|
||||
|
||||
Rector\PHPUnit\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector: ~
|
||||
Rector\PHPUnit\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector: null
|
||||
|
|
|
@ -7,4 +7,4 @@ services:
|
|||
PHPUnit\Framework\TestCase:
|
||||
scenario: 'test'
|
||||
|
||||
Rector\PHPUnit\Rector\Class_\RemoveDataProviderTestPrefixRector: ~
|
||||
Rector\PHPUnit\Rector\Class_\RemoveDataProviderTestPrefixRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\MethodCall\WithConsecutiveArgToArrayRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\WithConsecutiveArgToArrayRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\MethodCall\ReplaceAssertArraySubsetWithDmsPolyfillRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\ReplaceAssertArraySubsetWithDmsPolyfillRector: null
|
||||
|
|
|
@ -9,8 +9,8 @@ services:
|
|||
__construct:
|
||||
2: '' # no type, $dataName
|
||||
|
||||
Rector\PHPUnit\Rector\MethodCall\SpecificAssertContainsRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\SpecificAssertInternalTypeRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\SpecificAssertContainsRector: null
|
||||
Rector\PHPUnit\Rector\MethodCall\SpecificAssertInternalTypeRector: null
|
||||
|
||||
Rector\Renaming\Rector\Class_\RenameClassRector:
|
||||
$oldToNewClasses:
|
||||
|
@ -30,4 +30,4 @@ services:
|
|||
tearDownAfterClass: 'void'
|
||||
onNotSuccessfulTest: 'void'
|
||||
|
||||
Rector\PHPUnit\Rector\MethodCall\ReplaceAssertArraySubsetRector: ~
|
||||
Rector\PHPUnit\Rector\MethodCall\ReplaceAssertArraySubsetRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PHPUnit\Rector\Class_\TestListenerToHooksRector: ~
|
||||
Rector\PHPUnit\Rector\Class_\TestListenerToHooksRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\PSR4\Rector\Namespace_\NormalizeNamespaceByPSR4ComposerAutoloadRector: ~
|
||||
Rector\PSR4\Rector\Namespace_\NormalizeNamespaceByPSR4ComposerAutoloadRector: null
|
||||
|
|
|
@ -21,4 +21,4 @@ services:
|
|||
isset: 'offsetExists'
|
||||
unset: 'offsetUnset'
|
||||
|
||||
Rector\Shopware\Rector\ClassConstFetch\ShopwareVersionConstsRector: ~
|
||||
Rector\Shopware\Rector\ClassConstFetch\ShopwareVersionConstsRector: null
|
||||
|
|
|
@ -4,7 +4,7 @@ imports:
|
|||
- { resource: '../elasticsearch-dsl/elasticsearch-dsl50.yaml' }
|
||||
|
||||
services:
|
||||
Rector\Shopware\Rector\MethodCall\ReplaceEnlightResponseWithSymfonyResponseRector: ~
|
||||
Rector\Shopware\Rector\MethodCall\ReplaceEnlightResponseWithSymfonyResponseRector: null
|
||||
|
||||
Rector\Renaming\Rector\MethodCall\RenameMethodCallRector:
|
||||
$oldToNewMethodsByClass:
|
||||
|
@ -14,5 +14,5 @@ services:
|
|||
sendCookies: sendHeaders
|
||||
setBody: setContent
|
||||
|
||||
Rector\Shopware\Rector\ClassConstFetch\ShopwareVersionConstsRector: ~
|
||||
Rector\Shopware\Rector\MethodCall\ShopRegistrationServiceRector: ~
|
||||
Rector\Shopware\Rector\ClassConstFetch\ShopwareVersionConstsRector: null
|
||||
Rector\Shopware\Rector\MethodCall\ShopRegistrationServiceRector: null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# various versions
|
||||
services:
|
||||
# https://github.com/silverstripe/silverstripe-upgrader/issues/76
|
||||
Rector\Silverstripe\Rector\ConstantToStaticCallRector: ~
|
||||
Rector\Silverstripe\Rector\DefineConstantToStaticCallRector: ~
|
||||
Rector\Silverstripe\Rector\ConstantToStaticCallRector: null
|
||||
Rector\Silverstripe\Rector\DefineConstantToStaticCallRector: null
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
services:
|
||||
Rector\SOLID\Rector\If_\RemoveAlwaysElseRector: null
|
||||
Rector\SOLID\Rector\If_\ChangeNestedIfsToEarlyReturnRector: ~
|
||||
Rector\SOLID\Rector\If_\ChangeNestedIfsToEarlyReturnRector: null
|
||||
Rector\SOLID\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector: null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
Rector\SOLID\Rector\Class_\FinalizeClassesWithoutChildrenRector: ~
|
||||
Rector\SOLID\Rector\Class_\FinalizeClassesWithoutChildrenRector: null
|
||||
|
||||
Rector\SOLID\Rector\ClassConst\PrivatizeLocalClassConstantRector: ~
|
||||
Rector\SOLID\Rector\Class_\MakeUnusedClassesWithChildrenAbstractRector: ~
|
||||
Rector\SOLID\Rector\ClassConst\PrivatizeLocalClassConstantRector: null
|
||||
Rector\SOLID\Rector\Class_\MakeUnusedClassesWithChildrenAbstractRector: null
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# source: https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.0.md#upgrade-from-100-beta3-to-100
|
||||
|
||||
services:
|
||||
Rector\Sylius\Rector\Review\ReplaceCreateMethodWithoutReviewerRector: ~
|
||||
Rector\Sylius\Rector\Review\ReplaceCreateMethodWithoutReviewerRector: null
|
||||
|
||||
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
|
||||
$oldToNewMethodsByClass:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
services:
|
||||
Rector\Symfony\Rector\BinaryOp\ResponseStatusCodeRector: ~
|
||||
Rector\Symfony\Rector\Class_\MakeCommandLazyRector: ~
|
||||
Rector\SymfonyCodeQuality\Rector\Class_\EventListenerToEventSubscriberRector: ~
|
||||
Rector\Symfony\Rector\BinaryOp\ResponseStatusCodeRector: null
|
||||
Rector\Symfony\Rector\Class_\MakeCommandLazyRector: null
|
||||
Rector\SymfonyCodeQuality\Rector\Class_\EventListenerToEventSubscriberRector: null
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
services:
|
||||
Rector\Symfony\Rector\FrameworkBundle\ContainerGetToConstructorInjectionRector: ~
|
||||
Rector\Symfony\Rector\FrameworkBundle\GetParameterToConstructorInjectionRector: ~
|
||||
Rector\Symfony\Rector\FrameworkBundle\GetToConstructorInjectionRector: ~
|
||||
Rector\Symfony\Rector\FrameworkBundle\ContainerGetToConstructorInjectionRector: null
|
||||
Rector\Symfony\Rector\FrameworkBundle\GetParameterToConstructorInjectionRector: null
|
||||
Rector\Symfony\Rector\FrameworkBundle\GetToConstructorInjectionRector: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\SymfonyPHPUnit\Rector\Class_\SelfContainerGetMethodCallFromTestToSetUpMethodRector: ~
|
||||
Rector\SymfonyPHPUnit\Rector\Class_\SelfContainerGetMethodCallFromTestToSetUpMethodRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
Rector\Symfony\Rector\Controller\RedirectToRouteRector: ~
|
||||
Rector\Symfony\Rector\Controller\AddFlashRector: ~
|
||||
Rector\Symfony\Rector\Controller\RedirectToRouteRector: null
|
||||
Rector\Symfony\Rector\Controller\AddFlashRector: null
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
services:
|
||||
# Yaml::parse('file.yml') → Yaml::parse(file_get_contents('file.yml'))
|
||||
Rector\Symfony\Rector\Yaml\ParseFileRector: ~
|
||||
Rector\Symfony\Rector\Yaml\ParseFileRector: null
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
services:
|
||||
# php
|
||||
Rector\Symfony\Rector\HttpKernel\GetRequestRector: ~
|
||||
Rector\Symfony\Rector\Form\FormTypeGetParentRector: ~
|
||||
Rector\Symfony\Rector\Form\OptionNameRector: ~
|
||||
Rector\Symfony\Rector\MethodCall\ReadOnlyOptionToAttributeRector: ~
|
||||
Rector\Symfony\Rector\MethodCall\CascadeValidationFormBuilderRector: ~
|
||||
Rector\Symfony\Rector\HttpKernel\GetRequestRector: null
|
||||
Rector\Symfony\Rector\Form\FormTypeGetParentRector: null
|
||||
Rector\Symfony\Rector\Form\OptionNameRector: null
|
||||
Rector\Symfony\Rector\MethodCall\ReadOnlyOptionToAttributeRector: null
|
||||
Rector\Symfony\Rector\MethodCall\CascadeValidationFormBuilderRector: null
|
||||
|
||||
# general
|
||||
Rector\Renaming\Rector\Constant\RenameClassConstantRector:
|
||||
|
@ -154,4 +154,4 @@ services:
|
|||
# swift mailer
|
||||
'Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector': 'Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector'
|
||||
|
||||
Rector\Symfony\Rector\MethodCall\FormTypeInstanceToClassConstRector: ~
|
||||
Rector\Symfony\Rector\MethodCall\FormTypeInstanceToClassConstRector: null
|
||||
|
|
|
@ -18,7 +18,7 @@ services:
|
|||
name: 'weak'
|
||||
default_value: false
|
||||
|
||||
Rector\Symfony\Rector\Console\ConsoleExceptionToErrorEventConstantRector: ~
|
||||
Rector\Symfony\Rector\Console\ConsoleExceptionToErrorEventConstantRector: null
|
||||
|
||||
Rector\Renaming\Rector\Class_\RenameClassRector:
|
||||
$oldToNewClasses:
|
||||
|
|
|
@ -6,4 +6,4 @@ services:
|
|||
2:
|
||||
- 'Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'
|
||||
|
||||
Rector\Symfony\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector: ~
|
||||
Rector\Symfony\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector: null
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
services:
|
||||
Rector\Symfony\Rector\Validator\ConstraintUrlOptionRector: ~
|
||||
Rector\Symfony\Rector\Form\FormIsValidRector: ~
|
||||
Rector\Symfony\Rector\Form\StringFormTypeToClassRector: ~
|
||||
Rector\Symfony\Rector\VarDumper\VarDumperTestTraitMethodArgsRector: ~
|
||||
Rector\Symfony\Rector\DependencyInjection\ContainerBuilderCompileEnvArgumentRector: ~
|
||||
Rector\Symfony\Rector\Validator\ConstraintUrlOptionRector: null
|
||||
Rector\Symfony\Rector\Form\FormIsValidRector: null
|
||||
Rector\Symfony\Rector\Form\StringFormTypeToClassRector: null
|
||||
Rector\Symfony\Rector\VarDumper\VarDumperTestTraitMethodArgsRector: null
|
||||
Rector\Symfony\Rector\DependencyInjection\ContainerBuilderCompileEnvArgumentRector: null
|
||||
|
||||
Rector\Symfony\Rector\Process\ProcessBuilderInstanceRector: ~
|
||||
Rector\Symfony\Rector\Process\ProcessBuilderGetProcessRector: ~
|
||||
Rector\Symfony\Rector\Process\ProcessBuilderInstanceRector: null
|
||||
Rector\Symfony\Rector\Process\ProcessBuilderGetProcessRector: null
|
||||
|
||||
Rector\Renaming\Rector\Class_\RenameClassRector:
|
||||
$oldToNewClasses:
|
||||
|
|
|
@ -13,11 +13,11 @@ services:
|
|||
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: ~
|
||||
Rector\Symfony\Rector\FrameworkBundle\ContainerGetToConstructorInjectionRector: null
|
||||
|
||||
# https://symfony.com/blog/new-in-symfony-4-2-important-deprecations
|
||||
Rector\Symfony\Rector\New_\StringToArrayArgumentProcessRector: ~
|
||||
Rector\Symfony\Rector\New_\RootNodeTreeBuilderRector: ~
|
||||
Rector\Symfony\Rector\New_\StringToArrayArgumentProcessRector: null
|
||||
Rector\Symfony\Rector\New_\RootNodeTreeBuilderRector: null
|
||||
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$positionWithDefaultValueByMethodNamesByClassTypes:
|
||||
|
@ -116,5 +116,5 @@ services:
|
|||
# https://github.com/symfony/symfony/commit/f5c355e1ba399a1b3512367647d902148bdaf09f
|
||||
Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector:
|
||||
__construct:
|
||||
0: ~
|
||||
1: ~
|
||||
0: null
|
||||
1: null
|
||||
|
|
|
@ -2,7 +2,7 @@ services:
|
|||
# https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.3.md
|
||||
|
||||
# https://symfony.com/blog/new-in-symfony-4-3-better-test-assertions
|
||||
Rector\Symfony\Rector\MethodCall\SimplifyWebTestCaseAssertionsRector: ~
|
||||
Rector\Symfony\Rector\MethodCall\SimplifyWebTestCaseAssertionsRector: null
|
||||
|
||||
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
|
||||
$oldToNewMethodsByClass:
|
||||
|
@ -11,7 +11,7 @@ services:
|
|||
Symfony\Component\Security\Http\Firewall:
|
||||
handleRequest: 'callListeners'
|
||||
|
||||
Rector\Symfony\Rector\MethodCall\MakeDispatchFirstArgumentEventRector: ~
|
||||
Rector\Symfony\Rector\MethodCall\MakeDispatchFirstArgumentEventRector: null
|
||||
|
||||
# https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching
|
||||
Rector\Renaming\Rector\Class_\RenameClassRector:
|
||||
|
|
|
@ -2,4 +2,4 @@ services:
|
|||
# https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.4.md
|
||||
|
||||
# https://github.com/symfony/symfony/pull/33775
|
||||
Rector\Symfony\Rector\Console\ConsoleExecuteReturnIntRector: ~
|
||||
Rector\Symfony\Rector\Console\ConsoleExecuteReturnIntRector: null
|
||||
|
|
|
@ -156,4 +156,4 @@ services:
|
|||
|
||||
Rector\Rector\Namespace_\PseudoNamespaceToNamespaceRector:
|
||||
$namespacePrefixesWithExcludedClasses:
|
||||
Twig_: ~
|
||||
Twig_: null
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\Twig\Rector\SimpleFunctionAndFilterRector: ~
|
||||
Rector\Twig\Rector\SimpleFunctionAndFilterRector: null
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
services:
|
||||
Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector: ~
|
||||
Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector: ~
|
||||
Rector\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector: ~
|
||||
Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector: ~
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector: ~
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector: ~
|
||||
Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector: null
|
||||
Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector: null
|
||||
Rector\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector: null
|
||||
Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector: null
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector: null
|
||||
Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector: null
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
services:
|
||||
# remove unused "use" statements
|
||||
PhpCsFixer\Fixer\Import\NoUnusedImportsFixer: ~
|
||||
PhpCsFixer\Fixer\Import\NoUnusedImportsFixer: null
|
||||
|
||||
# order use statements A-Z
|
||||
PhpCsFixer\Fixer\Import\OrderedImportsFixer: ~
|
||||
PhpCsFixer\Fixer\Import\OrderedImportsFixer: null
|
||||
|
||||
# remove leading slash ("\") at imports
|
||||
PhpCsFixer\Fixer\Import\NoLeadingImportSlashFixer: ~
|
||||
PhpCsFixer\Fixer\Import\NoLeadingImportSlashFixer: null
|
||||
|
||||
# remove extra spaces from DocBlocks
|
||||
PhpCsFixer\Fixer\Comment\NoTrailingWhitespaceInCommentFixer: ~
|
||||
PhpCsFixer\Fixer\Comment\NoTrailingWhitespaceInCommentFixer: null
|
||||
|
||||
# clean empty doc blocks, e.g. after annotation removal
|
||||
PhpCsFixer\Fixer\Phpdoc\NoEmptyPhpdocFixer: ~
|
||||
PhpCsFixer\Fixer\Phpdoc\NoEmptyPhpdocFixer: null
|
||||
|
||||
# add spaces between class elements
|
||||
PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer: ~
|
||||
PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer: null
|
||||
|
||||
# add declare strict types to start of the file
|
||||
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer: ~
|
||||
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer: null
|
||||
|
|
22
ecs.yaml
22
ecs.yaml
|
@ -41,23 +41,23 @@ parameters:
|
|||
|
||||
skip:
|
||||
# rather useless
|
||||
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff: ~
|
||||
PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer: ~
|
||||
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: ~
|
||||
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff: null
|
||||
PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer: null
|
||||
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: null
|
||||
|
||||
PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff.Underscore: ~
|
||||
Symplify\CodingStandard\Sniffs\Architecture\DuplicatedClassShortNameSniff: ~
|
||||
PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff.Underscore: null
|
||||
Symplify\CodingStandard\Sniffs\Architecture\DuplicatedClassShortNameSniff: null
|
||||
# skip temporary due to missing "import" feature in PhpStorm
|
||||
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff.PartialUse: ~
|
||||
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff.PartialUse: null
|
||||
|
||||
# run manually from time to time - performance demanding + not to bother user with it
|
||||
Symplify\CodingStandard\Fixer\Order\PropertyOrderByComplexityFixer: ~
|
||||
Symplify\CodingStandard\Fixer\Order\PrivateMethodOrderByUseFixer: ~
|
||||
Symplify\CodingStandard\Fixer\Order\PropertyOrderByComplexityFixer: null
|
||||
Symplify\CodingStandard\Fixer\Order\PrivateMethodOrderByUseFixer: null
|
||||
|
||||
PhpCsFixer\Fixer\Phpdoc\PhpdocTypesFixer:
|
||||
- 'packages/Php74/src/Rector/Double/RealToFloatTypeCastRector.php'
|
||||
|
||||
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenReferenceSniff: ~
|
||||
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenReferenceSniff: null
|
||||
|
||||
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff:
|
||||
- 'src/Util/*.php'
|
||||
|
@ -128,7 +128,7 @@ parameters:
|
|||
# respects inherited pattern for better comparing
|
||||
- 'src/PhpParser/Printer/BetterStandardPrinter.php'
|
||||
|
||||
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff.FoundInWhileCondition: ~
|
||||
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff.FoundInWhileCondition: null
|
||||
|
||||
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingParameterTypeHint:
|
||||
# 3rd party parent code
|
||||
|
@ -158,6 +158,6 @@ parameters:
|
|||
- 'compiler/src/*'
|
||||
|
||||
# conflicts with "PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer"
|
||||
PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer: ~
|
||||
PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer: null
|
||||
|
||||
line_ending: "\n"
|
||||
|
|
|
@ -12,10 +12,10 @@ services:
|
|||
- '../src/Attributes/Ast/PhpDoc/*'
|
||||
- '../src/PhpDocNode/*'
|
||||
|
||||
PHPStan\PhpDocParser\Lexer\Lexer: ~
|
||||
PHPStan\PhpDocParser\Parser\TypeParser: ~
|
||||
PHPStan\PhpDocParser\Parser\ConstExprParser: ~
|
||||
Symplify\PackageBuilder\Php\TypeAnalyzer: ~
|
||||
PHPStan\PhpDocParser\Lexer\Lexer: null
|
||||
PHPStan\PhpDocParser\Parser\TypeParser: null
|
||||
PHPStan\PhpDocParser\Parser\ConstExprParser: null
|
||||
Symplify\PackageBuilder\Php\TypeAnalyzer: null
|
||||
|
||||
PHPStan\PhpDocParser\Parser\PhpDocParser:
|
||||
alias: 'Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
parameters:
|
||||
project_directory: ~
|
||||
project_directory: null
|
||||
|
||||
services:
|
||||
_defaults:
|
||||
|
|
|
@ -10,10 +10,10 @@ services:
|
|||
# "Type" is because the file is needed for PHPStan container only
|
||||
- '../src/Type'
|
||||
|
||||
Rector\Php\TypeAnalyzer: ~
|
||||
Rector\FileSystem\FilesFinder: ~
|
||||
Rector\PhpParser\Printer\BetterStandardPrinter: ~
|
||||
Rector\PhpParser\Node\BetterNodeFinder: ~
|
||||
Rector\Php\TypeAnalyzer: null
|
||||
Rector\FileSystem\FilesFinder: null
|
||||
Rector\PhpParser\Printer\BetterStandardPrinter: null
|
||||
Rector\PhpParser\Node\BetterNodeFinder: null
|
||||
|
||||
# PHPStan
|
||||
PHPStan\Broker\Broker:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
services:
|
||||
Rector\Rector\Psr4\MultipleClassFileToPsr4ClassesRector: ~
|
||||
Rector\Rector\Psr4\MultipleClassFileToPsr4ClassesRector: null
|
||||
|
|
Loading…
Reference in New Issue
Block a user