github rectorphp/rector 0.17.8
Released Rector 0.17.8

latest releases: 1.2.10, 1.2.9, 1.2.8...
15 months ago

New Features 🥳

  • [TypeDeclaration] Add Closure support on BoolReturnTypeFromStrictScalarReturnsRector (#4610)
  • AddMethodCallBasedStrictParamTypeRector: Support changing protected methods in final classes (#4611), Thanks @staabm!
  • [TypeDeclaration] Add StrictStringParamConcatRector (#4624)

Bugfixes 🐛

  • [PHPStanStaticTypeMapper] FQCN for Closure type mapper (#4584)
  • Fixed constant types handling in TypedPropertyFromStrictConstructorRector (#4588), Thanks @staabm!
  • [TypeDeclaration] Skip coalesce on StrictArrayParamDimFetchRector (#4589)
  • Bump to phpdoc-parser 1.23 and fill construct() attributes (#4590)
  • [TypeDeclaration] Skip override string on StrictArrayParamDimFetchRector (#4591)
  • [Autoloading] Using SimpleParameterProvider on BootstrapFilesIncluder (#4592)
  • [Php81] Fix regression skip call by ref on ReadOnlyPropertyRector (#4593)
  • [PHPStanStaticTypeMapper] Make use of toPhpDocNode() on ObjectTypeMapper (#4581)
  • [PHPStanStaticTypeMapper] Fix IntersectionTypeMapper to make ObjectType have FQCN (#4598)
  • [Php81] Skip re-assign with AssignOp on ReadOnlyPropertyRector (#4600)
  • Reduce ConstExprClassNameDecorator overhead (#4603), Thanks @staabm!
  • Resolve native return-type from native union-type in short ternary (#4606), Thanks @staabm!
  • [Strict] Skip from docblock @return on DisallowedEmptyRuleFixerRector (#4608)
  • [Strict] Skip @return docblock on BooleanInIfConditionRuleFixerRector (#4609)
  • [Php81] Fix regression skip call by ref on ReadOnlyPropertyRector on non __construct method (#4614)
  • [CodeQuality][Strict] Handle infinite loop on SimplifyDeMorganBinaryRector+SimplifyIfReturnBoolRector+DisallowedEmptyRuleFixerRector (#4615)
  • [CodingStyle][Namespace_] Support constant imports (#4612), Thanks @natepage!
  • [Php81] Skip property fetch from new static on ReadOnlyPropertyRector (#4617)
  • [CodingStyle] Handle crash on empty cases on BinarySwitchToIfElseRector (#4618)
  • Fix string type on StrictArrayParamDimFetchRector (#4623)
  • [PHPStanStaticTypeMapper] Handle crash on DowngradeMixedTypeDeclarationRector for PHPStan\Type\ConditionalType (#4625)
  • [Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
  • [Php81] Skip call by ref on ReadOnlyPropertyRector on FuncCall (#4630)
  • [Printer] Fix printing PHPStan AlwaysRememberedExpr with add unwrapper inside BetterStandardPrinter::p (#4629)
  • [TypeDeclaration] Skip has parent class method on AddParamTypeFromPropertyTypeRector (#4627)

Removed 💀

  • [Printer] Remove has InlineHTML node check after apply changes on PhpFileProcessor (#4601)

Don't miss a new rector release

NewReleases is sending notifications on new releases.