Skip to content

Released Rector 2.5.5

Latest

Choose a tag to compare

@TomasVotruba TomasVotruba released this 09 Jul 09:51

New Features 🥳

  • [CodingStyle] Add AlternativeIfToBracketRector (#8158)
  • [TypeDeclaration] Add PrivateMethodReturnTypeFromStrictNewArrayRector, split private methods out (#8153)
  • [CodeQuality] Decopule array and object variants from ExplicitBoolCompareRector (#8162)

Bugfixes 🐛

  • [TypeDeclaration] Fix AddClosureParamTypeForArrayMapRector to type closure params from array values, not keys (#8163)
  • [Php56] Add missing parentheses for lower-precedence operands in PowToExpRector (#8161)
  • [Php80] Keep trailing doc comment after annotation in AnnotationToAttributeRector (#8160)
  • [CodeQuality] Skip same boolean in both branches in SimplifyIfReturnBoolRector (#8159)
  • [CodeQuality] Skip alternative syntax (if/endif) in ShortenElseIfRector (#8157)
  • [EarlyReturn] Split nested && operand into its own early return in ReturnBinaryOrToEarlyReturnRector (#8156)
  • [CodeQuality] Preserve parentheses around low-precedence operands in LogicalToBooleanRector (#8155)
  • [CodeQuality] Skip inner function referenced as string callable in InnerFunctionToPrivateMethodRector (#8154)
  • [CodeQuality] Preserve parentheses around right-side assign in LogicalToBooleanRector (#8152)
  • [CodeQuality] Wrap assign on right side of binary op in parentheses in LogicalToBooleanRector (#8151)
  • [DeadCode] Keep generic static union docblock in RemoveDuplicatedReturnSelfDocblockRector (#8150)