github rectorphp/rector 1.2.4
Released Rector 1.2.4

latest release: 1.2.5
27 days ago

Bugfixes 🐛

  • Fix PropertyTypeFromStrictSetterGetterRector for default null (#6231)
  • [Php70] Fix with \r\n on EregToPregMatchRector (#6246)
  • Optimise post rectors (#6240), Thanks @carlos-granados!
  • [Php84] Do not reprint node type on ExplicitNullableParamTypeRector (#6250)
  • Skip Doctrine collections in TypedPropertyFromAssignsRector (#6253)
  • Skip Columns from TypedPropertyFromAssignsRector, as handled better in doctrine rules (#6254)
  • [AutoImport] Do not add cast on valid Integer type on Name Node on auto import enabled (#6236)
  • [AutoImport] Do not add cast on valid Integer type on aliased Name Node on auto import enabled (#6237)
  • [Performance] Cache should traverse for AddUseStatementGuard (#6234)

New Features 🥳

  • Adds the ScalarValueToConstFetchRector rule (#6195), Thanks @peterfox!
  • [TypeDeclaration] Add AddParamArrayDocblockBasedOnCallableNativeFuncCallRector (#6233)
  • [TypeDeclaration] Add AddReturnArrayDocblockBasedOnArrayMapRector (#6235)

Deprecated 💀

  • Deprecate PublicConstantVisibilityRector, as adds public blindly everywhere; use scope-based approach instead (#6238)

rectorphp/rector-symfony 🎵

  • [Symfony 6.1] Skip abstract class on CommandConfigureToAttributeRector (#662)
  • [CodeQuality] skip array + non native response return on ResponseReturnTypeControllerActionRector (#661)
  • [CodeQuality] Skip posible return array + response on ResponseReturnTypeControllerActionRector (#660)
  • Do not convert to array Process->setInput() (#647), Thanks @refsz

rectorphp/rector-doctrine 🟠

  • [CodeQuality] Skip blob type on TypedPropertyFromColumnTypeRector (#340)
  • Fix attribute support in ImproveDoctrineCollectionDocTypeInEntityRector (#339)

rectorphp/rector-phpunit 🔵

  • [PHPUnit100] Fix typo in AssertIssetToAssertObjectHasPropertyRector (#356), Thanks @haydulski
  • [Prefix] Fix Prefixed PHPUnit Ticket class (#355)
  • [CodeQuality] Assert compare on countable (#353), Thanks @peterfox

Don't miss a new rector release

NewReleases is sending notifications on new releases.