- Bump min to PHP 7.2 (#1955) - following PHPStan 1.5 bump, PHP 7.1 usage of Rector is only ~0.2 %
New Features 🎉
- [DX] Remove different php version rector reporting to make run more clean (#1959)
- Re-use NeighbourClassLikePrinter (#1957)
- [Php74] Add GetCalledClassToSelfClassRector (#1971), Thanks @samsonasik!
- [Php55] Move GetCalledClassToSelfClassRector + GetCalledClassToStaticClassRector from php 7.4 to 5.5 SetList (#1972), Thanks @samsonasik!
- [DowngradePhp81] Add DowngradeArrayIsListRector (#1996), Thanks @samsonasik!
- [DowngradePhp54] Add DowngradeThisInClosureRector (#1995), Thanks @samsonasik!
- [Removing] Add RemoveNamespaceRector (#2013), #7093, Thanks @samsonasik!
Bugfixes 🐛
- Fix bug with handling bad symlinks (#1938), Thanks @inderpreet99!
- Fix stub PHPUnit\Framework\TestCase (#1960), Thanks @samsonasik!
- [TypeDeclaration] Skip ArrayShapeFromConstantArrayReturnRector on key has colon (#1962), Thanks @samsonasik!
- [TypeDeclaration] Skip key has bracket {}[] on ArrayShapeFromConstantArrayReturnRector (#1968), Thanks @samsonasik!
- [CodeQuality] Handle not identical return false then true on SimplifyIfReturnBoolRector (#1969), Thanks @samsonasik!
- [Php81] Skip anonymous class on FinalizePublicClassConstantRector (#1970), Thanks @samsonasik!
- Handle annotation import with enable AUTO_IMPORT_NAMES not changed (for non-namespaced file) (#1973), Thanks @samsonasik!
- [CodeQuality] Handle Param by reference in target method on CallableThisArrayToAnonymousFunctionRector (#1974), Thanks @samsonasik!
- [TypeDeclaration] Skip return inside array_map on ArrayShapeFromConstantArrayReturnRector (#1977), #7079, Thanks @samsonasik!
- [Privatization] Skip parent static property used by parent method on PrivatizeFinalClassPropertyRector (#1978), Thanks @samsonasik!
- [Php80] Skip empty default on ChangeSwitchToMatchRector (#1980), Thanks @samsonasik!
- [TypeDeclaration] Fix AddMethodCallBasedStrictParamTypeRector for offset type (#1982)
- Fix AddClosureReturnTypeRector for union types of mutually related classes (#1984), Thanks @samsonasik!
- [CodingStyle] Skip AddFalseDefaultToBoolPropertyRector on assigned in __construct (#1998), Thanks @samsonasik!
- [TypeDeclaration] Handle default value on not inlined assignment in __construct on TypedPropertyFromStrictConstructorRector (#2008), Thanks @samsonasik!
- [TypeDeclaration] Handle multiple methods define __construct later on TypedPropertyFromStrictConstructorRector (#2009), Thanks @samsonasik!
- [TypeDeclaration] Skip __construct in inner class on TypedPropertyFromStrictConstructorRector (#2010), Thanks @samsonasik!
- [PHPStan] Fix PHPStan notice on ParallelFileProcessor (#2011), Thanks @samsonasik!