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