All Versions
131
Latest Version
Avg Release Cycle
2 days
Latest Release
-

Changelog History
Page 9

  • v0.7.9 Changes

    April 08, 2020

    ๐Ÿ›  Fixed

    • [#3149] fix sniff public
    • [#3148] fix PrivatizeLocalOnlyMethodRector for event subscriber methods
  • v0.7.8 Changes

    April 07, 2020

    โž• 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
  • v0.7.7 Changes

    March 20, 2020

    โž• Added

    • [#3024] add DoctrineBehaviors 2.0
    • [#3019] add fix for getIterator() on Finder for Array spread
    • ๐Ÿ’… [#3034] Add checkstyle output format
    • [#3021] add phpunit 9 rector to convert non-strict assertContains, Thanks to [@nightlinus]
    • [#3023] add DoctrineBehaviors 2.0

    ๐Ÿ”„ Changed

    • [#3032] [DeadCode] Skip shifted variable
    • ๐Ÿ‘ท [#3015] Rector CI is now exclusive for non-fork pushes + PRs, Thanks to [@JanMikes]
    • [#3013] Commit rector processed changes from CI, Thanks to [@JanMikes]
    • [#3036] Run cs after rector ci, Thanks to [@JanMikes]
    • [#3027] ForToForeachRector fixture, Thanks to [@crishoj]

    ๐Ÿ›  Fixed

    • [#3029] Fix other loop
    • ๐Ÿ—„ [#3022] PHP 7.4 deprecation fix, Thanks to [@alexeyshockov]
    • ๐Ÿ–จ [#3030] fix no-space change reprint in case of dual comment
    • [#3035] Fix typo in README.md, Thanks to [@pgrimaud]
    • [#3031] fix asterisk indent

    โœ‚ Removed

    • [#3016] Delete DogFoodClass, Thanks to [@JanMikes]
  • v0.7.6

    March 12, 2020
  • v0.7.5

    March 11, 2020
  • v0.7.4 Changes

    March 11, 2020

    โž• Added

    • โœ… [#3003] Add failing tests for method annotation, Thanks to [@stedekay]
    • โœ… [#2990] AssertTrueFalseToSpecificMethodRector: add broken test ('Pick more specific node than PhpParser\Node\Expr\StaticCall'), Thanks to [@gnutix]
    • [#2988] add space between name and value

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ [#3009] [ReadyToBeMerged][AnnotateThrowables] Support $this calling a method of the same class, Thanks to [@Aerendir]
    • [#3012] check for used variable without comments
    • [#2981] Skip passed argument
    • [#2984] improve array shape double collon spacing
    • [#2987] improve param array type for change type
    • [#2980] skip empty method on open-source
    • [#3010] Abstract files system
    • ๐Ÿ‘ [#2998] AnnotateThrowables: support analysis of called functions and methods, Thanks to [@Aerendir]

    ๐Ÿ›  Fixed

    • [#3008] [ReadyToBeMerged][AnnotateThrowables] Fix a small mispelling., Thanks to [@Aerendir]
    • [#2992] fix spacing of data provider
    • [#2997] Fix various static calls errors in PHPUnit Rectors., Thanks to [@gnutix]
    • [#3004] fix method annotation
    • [#2985] fix union param
    • ๐Ÿ–จ [#2982] Fix PhpDocInfoPrinter slash removal
    • [#2996] fix multiline with one space

    โœ‚ Removed

    • ๐Ÿšš [#3005] remove comments only in case of change to original node
  • v0.7.3 Changes

    March 01, 2020

    โž• Added

    • ๐Ÿšš [#2948] [DeadCode] Add RemoveDuplicatedIfReturnRector
    • โœ… [#2950] [GetClassOnNullRector] Add failing test in trait., Thanks to [@gnutix]
    • โœ… [#2953] AssertRegExpRectorTest: add broken test on static method call, Thanks to [@gnutix]
    • โœ… [#2956] AssertTrueFalseInternalTypeToSpecificMethodRector: add broken test method call, Thanks to [@gnutix]
    • โœ… [#2952] ReturnTypeDeclarationRector: add broken test on array indexes (?), Thanks to [@gnutix]
    • ๐Ÿ‘€ [#2951] AddSeeTestAnnotationRectorTest: add broken test for simple comment., Thanks to [@gnutix]
    • โœ… [#2943] add failing test case for [#2939], Thanks to [@fsok]
    • ๐Ÿšš [#2954] RemoveDefaultArgumentValueRector: add broken test on static method call., Thanks to [@gnutix]
    • [#2968] Class Cognitive complexity improvements + add docContent as first step to format preserving of doc nodes

    ๐Ÿ”„ Changed

    • [#2974] [DX] Improve ForToForeachRector
    • [#2966] make open-source parameter typo-proof
    • [#2969] decopule class dependency manipulator methods
    • [#2949] Improve PropertyFetchManipulator
    • [#2972] Simplify PropertyFetchManipulator
    • ๐Ÿ–จ [#2962] cleanup extra space in doc print
    • [#2975] Decrease class complexity <=50
    • [#2947] Let amount of usages decide whether whitespaces or tabs are used, Thanks to [@alexanderschnitzler]

    ๐Ÿ›  Fixed

    • [#2978] [DeadCode] Fix shifted value
    • [#2979] fix spacing for array shape item
    • [#2959] fix return dim array fetch
    • [#2960] fix naming of non-func call
    • [#2963] fix get class on trait
    • [#2964] fix complexity
    • [#2965] fix extra space in phpdoc
    • [#2977] fix array shape type
    • ๐Ÿ›  [#2961] various fixes

    โœ‚ Removed

    • ๐Ÿšš [#2946] remove dead code
  • v0.7.2 Changes

    February 27, 2020

    โž• Added

    • [#2924] [CodeIgniter] Add 4.0 set
    • [#2941] Make compiler own kernel app + add more debug info
    • ๐Ÿ [#2940] add Windows print test
    • [#2933] add project_type
    • [#2931] add has lifecycle callbacks
    • โœ… [#2925] add docs space test

    ๐Ÿ”„ Changed

    • ๐Ÿšš [#2926] [DeadCode] Skip abstract methods in RemoveUnusedParameterRector as 3rd contract

    ๐Ÿ›  Fixed

    • [#2935] Fix double boolean
    • [#2934] fix [@method] union return type annotation
    • ๐Ÿคก [#2932] Fix prophecy mocking arg

    โœ‚ Removed

    • ๐Ÿšš [#2937] skip open source class in remove unused param in open-source
  • v0.7.1 Changes

    February 23, 2020

    โž• Added

    • [#2906] [CodeQuality] Add InlineIfToExplicitIfRector
    • ๐Ÿ’… [#2898] [CodingStyle] Add CamelCaseFunctionNamingToUnderscoreRector
    • ๐Ÿšš [#2919] [DeadCode] Add RemoveUnusedVariableAssignRector
    • ๐Ÿšš [#2918] [DeadCode] Add RemoveUnusedClassConstantRector
    • ๐Ÿšš [#2914] [JMS] Add RemoveJmsInjectParamsAnnotationRector and RemoveJmsServiceAnnotationRector
    • [#2920] [MysqlToMysqli] Add MysqlQueryMysqlErrorWithLinkRector
    • [#2917] [Phalcon] Add DecoupleSaveMethodCallWithArgumentToAssignRector
    • [#2907] [SOLID] Add ChangeNestedForeachIfsToEarlyContinueRector
    • 0๏ธโƒฃ [#2873] [SOLID] Add ChangeReadOnlyVariableWithDefaultValueToConstantRector
    • ๐Ÿ“„ [#2901] add links to each rule to docs
    • ๐Ÿ”€ [#2902] add mergeable
    • ๐Ÿšš [#2862] Adding failing test for RemoveAlwaysElseRector, Thanks to [@escopecz]
    • โœ… [#2867] Add failing test for issue [#2863], Thanks to [@fsok]
    • ๐Ÿšš [#2853] [DeadCode] Add RemoveDeadTryCatchRector
    • 0๏ธโƒฃ [#2856] [SOLID] Add ChangeReadOnlyPropertyWithDefaultValueToConstantRector
    • [#2848] add first OXID rector, Thanks to [@alfredbez]

    ๐Ÿ”„ Changed

    • [#2883] [OXID] replace backwards-compatability classes in oxNew, Thanks to [@alfredbez]
    • โœ… [#2886] skip test fixtures
    • ๐Ÿ“ฆ [#2872] Skip unpackaged args in ArraySpreadInsteadOfArrayMergeRector
    • โœ… [#2871] Make ParamTypeDeclaration test pass with parent interface
    • โšก๏ธ [#2874] Update set for transforming Kdyby\Translation to Contributte\Translation, Thanks to [@Ivorius]
    • [#2869] Keep comments
    • โšก๏ธ [#2868] update CHANGELOG
    • [#2875] disable coverage on pr, secret does not work
    • โœ… [#2876] AnnotateThrowablesRector: Improve organization of tests., Thanks to [@Aerendir]
    • โœ… [#2881] Callable type falling tests, Thanks to [@snapshotpl]
    • [#2884] Callable type
    • [#2922] skip used property
    • ๐Ÿ‘ [#2890] Support throw of static methods, Thanks to [@Aerendir]
    • ๐Ÿ‘ [#2904] Support throw from the method of an instantiated class., Thanks to [@Aerendir]
    • [#2916] improve complexity
    • [#2915] improve EregToPcreTransformer complexity
    • [#2913] replace SHORT_NAME with short name interface
    • [#2909] Rector CI: enable SOLID set
    • [#2905] Fixup
    • [#2903] prevent getName() on StaticCall or MethodCall
    • [#2896] keep array function static
    • [#2631] [AddArrayReturnDocTypeRector] sets a less specific type in child method (mixed[]) than is defined in parent method (SomeObject[]), Thanks to [@gnutix]
    • [#2650] [CountOnNullRector] Should understand array/countable variable in trait method, Thanks to [@gnutix]
    • [#2860] Make AnnotateThrowablesRector continue on unhandled node types., Thanks to [@Aerendir]
    • [#2859] Apply properties to constants rule from SOLID
    • [#2858] Cleanup AnnotateThrowablesRector
    • [#2857] Improve AnnotateThrowablesRector
    • ๐Ÿ“ฆ [#2851] move Nette package to rules

    ๐Ÿ›  Fixed

    • ๐Ÿ–จ [#2865] fix callable print [closes [#2841]]
    • [#2866] Skip CountOnNullRector on trait + fix return type mixed override
    • [#2885] Fix already constant
    • [#2900] Fix incorrect regexes to preserve doc tags spacing
    • [#2899] fix duplicate switch without break
    • [#2880] Fix PHP notice in ternary to spaceship rector, Thanks to [@fsok]
    • ๐Ÿšš [#2870] fix remove alwasy else for anonymous function jump
    • [#2921] Fix FinalizeClassesWithoutChildrenRector for embedable
    • [#2893] fix tab indent
    • [#2897] fix nested array dim fetch resolving type
  • v0.7.0 Changes

    February 14, 2020

    โž• Added

    • [#2795] [CakePHPToSymfony] Add CakePHPBeforeFilterToRequestEventSubscriberRector
    • [#2850] [PHPStan] Add KeepRectorNamespaceForRectorRule
    • ๐Ÿ”จ [#2784] [PHPUnit] feature: add rule to refactor exception methods, Thanks to [@alfredbez]
    • [#2849] [Renaming] Add RenameFuncCallToStaticCallRector
    • ๐Ÿ‘ [#2811] Add support for phpunit 9, Thanks to [@snapshotpl]
    • [#2843] add more checks to 'composer complete-check', Thanks to [@alfredbez]
    • [#2802] added --config parameter to README, Thanks to [@C0pyR1ght]

    ๐Ÿ”„ Changed

    • ๐Ÿšš [#2781] [PhpDoc] move get param types to php doc info
    • [#2830] Decouple Static Type Mapper
    • ๐Ÿ“ฆ [#2838] move Rector-rule based packages from /packages to /rules
    • ๐Ÿ’… [#2756] github-action: Annotate Github Pull Requests based on a Checkstyle Xโ€ฆ, Thanks to [@staabm]
    • [#2829] decouple PropertyFetchTypeResolver
    • ๐Ÿšš [#2847] move core architecture to own set
    • ๐Ÿ”€ [#2775] Merge pull request [#2775] from rectorphp/php-doc-object-attribute
    • [#2845] improve original format in CallableTypeNode
    • ๐Ÿ”€ [#2783] Merge pull request [#2783] from rectorphp/cleanup-parsed-nodes
    • โšก๏ธ [#2844] Update to PHPStan 0.12.10 stable
    • ๐Ÿ”€ [#2786] Merge pull request [#2786] from rectorphp/php-doc-only
    • [#2792] decouple ImplicitToExplicitRoutingAnnotationDecorator
    • ๐Ÿ”€ [#2794] Merge pull request [#2794] from rectorphp/cakephp-before-request
    • [#2840] Inject the coveralls token as a secret, Thanks to [@ikvasnica]
    • 0๏ธโƒฃ [#2797] use PhpDocInfo by default
    • [#2799] DocBlockManipulator decoupling
    • [#2801] Decouple DocBlockClassRenamer
    • ๐Ÿ”€ [#2790] Merge pull request [#2790] from rectorphp/cakephp-routes-to-explicit
    • ๐Ÿšš [#2807] Move src namespace frm Rector\ to Rector\Core\
    • [#2817] decouple ParentConstantReflectionResolver
    • ๐Ÿ“ฆ [#2825] decouple VendorLock package
    • [#2821] rector for doctrine setParameters method, Thanks to [@vladyslavstartsev]
    • ๐Ÿ“œ [#2818] decouple function node finder and collector from ParsedNodesByType
    • ๐Ÿ“ฆ [#2823] NodeNameResolver decoupled to own package
    • [#2742] Decouple PHPStan Type to function resolver logic, Thanks to [@Lctrs]
    • ๐Ÿ“ฆ [#2810] rename package to use lowercased standard, prevent confusion with PSR-4
    • [#2791] [cs] apply property and method order

    ๐Ÿ—„ Deprecated

    • ๐Ÿšš [#2780] remove deprecated removeBy*() in DocBlockManipulator

    ๐Ÿ›  Fixed

    • ๐Ÿ›  [#2819] Cognitive complexity fixes
    • [#2813] Fix encapsed
    • ๐Ÿ— [#2846] Fix dev in build
    • ๐Ÿ— [#2808] Fix replacement for Table::buildRules(), Thanks to [@markstory]
    • โšก๏ธ [#2800] Update to PHPStan 0.12.9 and fix scoping deps
    • [#2812] [PHP 74] Fix ArraySpreadInsteadOfArrayMergeRector for non-constant string keys
    • ๐Ÿ›  [#2816] PHPStan fixes, Thanks to [@ondrejmirtes]
    • [#2814] Fix protected parent constant override

    โœ‚ Removed

    • ๐Ÿšš [#2831] remove parameter in imports
    • ๐Ÿšš [#2827] remove unused method
    • ๐Ÿšš [#2798] Remove nullable PhpDoc
    • ๐Ÿšš [#2826] remove duplicated method
    • ๐Ÿ”€ [#2787] Merge pull request [#2787] from rectorphp/remove-setter-only
    • ๐Ÿ”€ [#2789] Merge pull request [#2789] from rectorphp/remove-many-args