Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
In this release we merged 2 directories into /src
to speed up class loading and make work with code easier. This leads to BC change in namespace for your custom rules:
-use Rector\Core\
+use Rector\
That's it!
ReturnTypeFromStrictScalarReturnExprRector
(#5364), Thanks @RobertMe!__invoke()
method on AddVoidReturnTypeWhereNoReturnRector (#5376)ReturnTypeFromStrictBoolReturnExprRector
support for if/else returns (#5384)$this
in RenameForeachValueVariableToMatchExprVariableRector (#5360), Thanks @sreichel!@readonly
phpdoc (#5233), Thanks @staabm!ArraySpreadInsteadOfArrayMergeRector
from LevelSetList::UP_TO_PHP_74
(#5228), Thanks @staabm!