Rector v0.7.1 Release Notes
Release Date: 2020-02-23 // about 4 years ago-
โ 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