github rectorphp/rector 0.12.13
Released Rector 0.12.13

latest releases: 1.2.10, 1.2.9, 1.2.8...
2 years ago

New Features 🎉

  • [DowngradePhp80] Add DowngradeNumberFormatNoFourthArgRector (#1649), Thanks @samsonasik!
  • [DowngradePhp80] Use ArgsAnalyzer for has named args check (#1651), Thanks @samsonasik!
  • [Parallel] Increase ParallelFileProcessor::TIMEOUT_IN_SECONDS to 120 (#1657), Thanks @samsonasik!
  • [Php81] Add NullToStrictStringFuncCallArgRector (#1655), Thanks @samsonasik!
  • [Parallel] Add Option PARALLEL_TIMEOUT_IN_SECONDS and PARALLEL_SYSTEM_ERROR_COUNT_LIMIT constant to allow reconfigure it in rector config (#1666), Thanks @simPod!
  • Ensure autoloader is loaded in globally installed Rector (#1683), Thanks @PhilETaylor!

Bugfixes 🐛

  • [Core] BetterStandardPrinter performance improvement with unnecessary regex check on no Closure Uses and no ClassMethod ReturnType (#1617), Thanks @jtojnar!
  • [PhpAttribute] Fix array key of class constant reference (#1659)
  • [DX] Use type safe access with PrivatePropertyAccessor (#1660)
  • Do not remove final modifier from private constructors (#1663), Thanks @simPod!
  • Prevent UnionTypes rule from removing @param static in favor fo self-typed $argument (#1655), Thanks @samsonasik!
  • [Php80] Handle nested attribute with constant on AnnotationAttributeRector (#1661), Thanks @Jean85!
  • [CodeQuality] Do not add \ on static on CallableThisArrayToAnonymousFunctionRector (#1671), Thanks @samsonasik!
  • [Php81] Skip static call in right expr of Coalesce on NewInInitializerRector (#1670), Thanks @samsonasik!
  • Prevent UnionTypes rule from removing literal value scalar types (#1666), Thanks @simPod!
  • [Php74] Mirror comment on Closure return to ArrowFunction expr on ClosureToArrowFunctionRector (#1677), Thanks @samsonasik!
  • [Php70] Handle reverse sorting check on IfToSpaceshipRector (#1676), Thanks @samsonasik!
  • [TypeDeclaration] Skip Throw_ in construct and as Expr on ReturnNeverTypeRector (#1679), Thanks @samsonasik!
  • [DowngradePhp74] Do not remove non-null default value on nullable on DowngradeTypedPropertyRector (#1687), Thanks @samsonasik!
  • [Naming] Fix property interface and underscore naming (#1689)

Don't miss a new rector release

NewReleases is sending notifications on new releases.