github rectorphp/rector 2.6.3
Released Rector 2.6.3

4 hours ago

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 deprecated execute() into executeQuery() / executeStatement() (#507)

Bugfixes 🐛

  • [DeadCode] Skip RemoveReturnTagIncompatibleWithNativeTypeRector on a type alias nested in a union (#8319)
  • [NodeAnalyzer] Treat an infinite loop without a break as always terminated (#8348) — improves return/dead-code analysis on while (true) bodies

rector-symfony

  • [CodeQuality] Fix InlineClassRoutePrefixRector duplicating the route name prefix on attribute routes (#9851)
  • [Symfony 7.2] Fix PushRequestToRequestStackConstructorRector leaving the pushed request undefined (#1040)
  • [CodeQuality] Skip loadValidatorMetadata() containing addConstraint(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 ORMSetup methods — createAttributeMetadataConfiguration()createAttributeMetadataConfig(), createXMLMetadataConfiguration()createXMLMetadataConfig(), createConfiguration()createConfig()
  • [DBAL 4.0] Replace the removed Types::ARRAY with Types::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 use FileCacheStorage (#8354) — completes the cacheClass() deprecation from 2.6.2; only file cache is useful to end users

Don't miss a new rector release

NewReleases is sending notifications on new releases.