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