github rectorphp/rector 0.15.2
Released Rector 0.15.2

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

New Features 🥳

  • [TypeDeclaration] Add FalseReturnClassMethodToNullableRector (#3229)
  • [DeadCode] Add TargetRemoveClassMethodRector (#3240)
  • Adapt PrivateConstantToSelfRector to work on non-final classes, too (#3198), Thanks @alfredbez!
  • [CodingStyle] Add NullifyUnionNullableRector (#3231)
  • [TypeCoverage] Add EmptyOnNullableObjectToInstanceOfRector (#3230)
  • RenameClassRector with callback support (#3023), Thanks @dorrogeray!

Bugfixes 🐛

  • [Php82] Handle parent already readonly on ReadOnlyClassRector (#3199)
  • [DeadCode] Skip append array data on RemoveJustPropertyFetchRector (#3201)
  • [DeadCode] Skip standalone @return false or true on RemoveUselessReturnTagRector (#3202)
  • Fix wrong reference to replacement rule (#3203), Thanks @jlherren!
  • [Privatization] Do not remove comment on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#3204)
  • [Naming] Skip Doctrine collection with @var Collection<int, Checkbox> on RenamePropertyToMatchTypeRector (#3209)
  • [Core] Performance improvement: Remove unnecessary re-call FileFactory::createFileInfosFromPaths() (#3210)
  • [Php71] Skip defer() function on RemoveExtraParametersRector (#3211)
  • [Core] Improve performance: remove repetitive currentFileProvider->setFile() call on PhpFileProcessor (#3213)
  • [Php81] Allow explicit mixed processed on trait on NullToStrictStringFuncCallArgRector (#3212)
  • [Privatization] Skip used by heredoc on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3216)
  • [Parallel] Fix missing process RemovedAndAddedFilesProcessor->run() on parallel process on WorkerRunner (#3218)
  • [parallel] Improve performance: Run RemovedAndAddeedFileProcessor after loop (#3219)
  • [CodeQuality] Add empty() check to FlipTypeControlToUseExclusiveTypeRector (#3224)
  • [CodeQuality][TypeDeclaration] Handle default value from constructor removed on InlineConstructorDefaultToPropertyRector+TypedPropertyFromStrictConstructorRector (#3225)
  • [TypeDeclaration] Skip yield return on AddClosureReturnTypeRector (#3227)
  • [TypeDeclaration] Skip optional yield on AddReturnTypeDeclarationFromYieldsRector (#3228)
  • [NodeTraverser] Use NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN instead of NodeTraverser::DONT_TRAVERSE__CHILDREN (#3233)
  • [Core] Improve performance on AstResolver and ClassLikeAstResolver (#3234)
  • [Php81] Skip ReadOnlyPropertyRector on read only class (#3236)
  • [CodingStyle] Skip new line /\r\n|\r|\n/i on ConsistentPregDelimiterRector (#3241)
  • [CodingStyle] Skip EncapsedStringsToSprintfRector on heredoc (#3242)

Don't miss a new rector release

NewReleases is sending notifications on new releases.