A stabilization release on top of the composer-based sets finished in 2.6.2 - bugfixes across the engine, a couple of fresh Symfony and Doctrine rules, and the caching cleanup that the cacheClass() deprecation promised.
New rules 🎉
rector-symfony
- [Symfony 6.1]
RouteRequirementStringToConstantRector(#1037)
rector-doctrine
- [DBAL 3.1]
QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector— split the deprecatedexecute()intoexecuteQuery()/executeStatement()(#507)
Bugfixes 🐛
- [DeadCode] Skip
RemoveReturnTagIncompatibleWithNativeTypeRectoron a type alias nested in a union (#8319) - [NodeAnalyzer] Treat an infinite loop without a
breakas always terminated (#8348) — improves return/dead-code analysis onwhile (true)bodies
rector-symfony
- [CodeQuality] Fix
InlineClassRoutePrefixRectorduplicating the route name prefix on attribute routes (#9851) - [Symfony 7.2] Fix
PushRequestToRequestStackConstructorRectorleaving the pushed request undefined (#1040) - [CodeQuality] Skip
loadValidatorMetadata()containingaddConstraint(new Callback())(#1038)
rector-phpunit
- [PHPUnit 6.0] Skip imported PHPUnit assert functions in
AddDoesNotPerformAssertionToNonAssertingTestRector(#767)
Set changes 📈
rector-doctrine
- [ORM 3.5] Replace deprecated
ORMSetupmethods —createAttributeMetadataConfiguration()→createAttributeMetadataConfig(),createXMLMetadataConfiguration()→createXMLMetadataConfig(),createConfiguration()→createConfig() - [DBAL 4.0] Replace the removed
Types::ARRAYwithTypes::SIMPLE_ARRAY(#506)
Deprecations 💀
Deprecated rules run without any effect, print a warning and will be removed in a future major release.
rector-phpunit
AllowMockObjectsWithoutExpectationsAttributeRector— also removed from the set
Removals 💀
rector-src
- [Caching] Drop
MemoryCacheStorage, always useFileCacheStorage(#8354) — completes thecacheClass()deprecation from 2.6.2; only file cache is useful to end users