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