github rectorphp/rector 0.15.12
Released Rector 0.15.12

latest releases: 1.2.5, 1.2.4, 1.2.3...
19 months ago

This relese groups changes since 0.15.9 till 0.15.12 as hotfix releases.


New Features 🥳

  • [PHPUnit 10] Add data provider annotaiton to attribute rule (#146)
  • [TypeDeclaration] Add PropertyTypeFromStrictSetterGetterRector (#3313)
  • [TypeDeclaration] Add ReturnTypeFromStrictTernaryRector (#3318)
  • [Printer] Handle Add Node after Nop statement inlineHTML (#3303)
  • [NodeDecorator] Improve MixPhpHtmlDecorator::decorateNextNodesInlineHTML() performance: stop loop on found InlineHTML (#3305)
  • [Printer] Handle add Node after Nop not first stmt (#3312)
  • Make "init" part of "process" command to help new users with creating config (#3326)
  • Upgrade to PHPUnit 10 🥳️ (#3332)

Bugfixes 🐛

  • Fix nested extends pattern in AddReturnTypeDeclarationBasedOnParentClassMethodRector (#3325), Thanks @zeriyoshi!
  • [Php82] Skip non-FilesystemIterator on FilesystemIteratorSkipDotsRector (#3298)
  • [Php72] Handle crash on CreateFunctionToAnonymousFunctionRector on quoted variable arg concat (#3300)* trigger build (#3301)
  • [Printer] Handle return array of nodes with InlineHTML (#3304)
  • [Printer] Clean up nl usage on surplus tag check (#3307)
  • [PHPStanStaticTypeMapper] Handle crash on OversizedArrayType (#3306)
  • [Printer] Use <= 0 check for getStartTokenPos() for current node availability on MixPhpHtmlDecorator (#3308)
  • [CodeQuality] Skip reassign key on SimplifyForeachToCoalescingRector (#3315)
  • [Php81] Skip ReadonlyProperty for class that consume Trait with Property (#3314)
  • [Php82] Move consume trait property skip check to ReadOnlyClassRector (#3316)
  • [Php70] Handle crash on IfToSpaceshipRector with enum case (#3317)
  • [TypeDeclaration] Skip used by trait on PropertyTypeFromStrictSetterGetterRector (#3319)
  • [TypeDeclaration] Consume ParentClassMethodTypeOverrideGuard from ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() (#3320)
  • [TypeDeclaration] Replace ParentClassMethodTypeOverrideGuard::isReturnTypeChangeAllowed() with ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() in ReturnNeverTypeRector (#3321)
  • [TypeDeclaration] Move method ParentClassMethodTypeOverrideGuard::isReturnTypeChangeAllowed to ClassMethodReturnTypeOverrideGuard and make it private (#3323)

Don't miss a new rector release

NewReleases is sending notifications on new releases.