Rector v0.7.8 Release Notes
Release Date: 2020-04-07 // about 4 years ago-
โ Added
- ๐ [#3108] [DeadCode] Add RemoveDeadRecursiveClassMethodRector
- [#3117] [PHPUnit] Add AddProphecyTraitRector
- [#3093] [Privatization] Add PrivatizeLocalGetterToPropertyRector
- [#3100] [Privatization] Add PrivatizeLocalPropertyToPrivatePropertyRector
- ๐ [#3116] move node adding to PostRector
- [#3140] add ClassSyncerNodeTraverser
- โ [#3089] Add RunnableTestCase to run fixed code in a test, Thanks to [@paslandau]
- [#3094] Add parallel execution to ci/run_all_sets, Thanks to [@paslandau]
- ๐ [#3134] Add DoctrineAnnotationParserSyncer to prevent doctrine/annotation constant by-value override
- ๐ [#3114] move property adding to PostRector
- [#3141] [PHPUnit 9.1] Add assertFileNotExists() method rename
- [#3080] [CodeQuality] Add ArrayKeysAndInArrayToIssetRector
- ๐ [#3070] [DeadCode] Add empty() + count($values) > 0 checks to RemoveUnusedNonEmptyArrayBeforeForeachRector
- ๐ [#3068] [DeadCode] Add RemoveAssignOfVoidReturnFunctionRector
- ๐ [#3062] [DeadCode] Add RemoveUnusedFunctionRector
- ๐ [#3066] [DeadCode] Add RemoveUnusedNonEmptyArrayBeforeForeachRector
- โ [#3047] [PHPUnit] Add CreateMockToCreateStubRector
- [#3081] [TypeDeclaration] Add class method param type resolving by property
- 0๏ธโฃ [#3058] [PHP 7.4] Add default null type on properties
- 0๏ธโฃ [#3059] [PHP 7.4] Add restoration null default only
- ๐ [#3057] [PHP 7.4] Add id tag support + remove array on collection property
- [#3078] Add Safe 0.7 set
[#3072] [PHP 8.0] Add StrContainsRector
[#3111] [API] NodeRemovingCommander to PostRector
[#3084] [Privatization] Privatize methods that are used only locally
๐ [#3120] Improve performance
๐ฆ [#3097] move ci validation scripts to objectivy ProjectValidator package
[#3139] Correct sentence in README.md, Thanks to [@callmebob2016]
[#3092] Cleanup
[#3137] Fixup has same commit message, Thanks to [@JanMikes]
๐ณ [#3136] Copy .git directory into docker image, Thanks to [@JanMikes]
๐ [#3103] move constant privatization to privatization set
๐ [#3113] move name-importing to PostRector
[#3106] Require symfony 5.0.6 or 4.4.6, Thanks to [@UFTimmy]
[#3128] Allow PHPStan generics
๐ [#3115] move node-replacing to PostRector
[#3146] Make sure doctrine alias rector works in symfony controllers, Thanks to [@acrobat]
[#3082] [CodeQuality] use array_key_exists instead of isset
[#3056] [PHP 7.4] Improve TypedPropertyRector for Doctrine collection
[#3051] improve GeneratedValueTagValueNode
[#3063] [PHP 5.5] Prevent error on non-string value in PregReplaceEModifierRector
๐ [#3040] Proofread docs, Thanks to [@greg0ire]
[#3039] Proofread readme, Thanks to [@greg0ire]
๐จ [#3083] use just one type of printing
๐ Fixed
- [#3050] Fix assert choice tag value node with class constant reference
- [#3049] fix union type on ReturnTypeDeclarationRector
- [#3052] fix content resolving
- ๐ [#3054] skip if not used with the
array []
operator fixes [#3053], Thanks to [@derflocki] - [#3065] Fix multiple annotation reading of same type at class method
- [#3069] Fix Route separating key
- [#3077] Fix auto import
- [#3079] Fix annotation in requirements of [@Route]
- [#3064] [PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector
- ๐จ [#3132] Fix Gedmo annotation printing
- [#3130] Fix missing array key in ArrayMergeOfNonArraysToSimpleArrayRector
- [#3096] Fix [@Route] localized paths
- [#3129] fix missing host at [@Route] annotation
โ Removed
- ๐ [#3122] remove json rector dump formatter, not needed
- ๐ [#3071] remove ctor dependency on property/assign removal
- ๐ [#3076] [PHP 8.0] drop preg_match support from StrContains, too vague