github rectorphp/rector 2.4.3
Released Rector 2.4.3

3 hours ago

New Features 🥳


Bugfixes 🐛

  • Fix the behavior of ClassPropertyAssignToConstructorPromotionRector when types do not match (#7972), Thanks @mspirkov!
  • Rectify (#7973)
  • Bump crate-ci/typos from 1.44.0 to 1.46.0 (#7976), Thanks @dependabot[bot]!
  • [CodeQuality] Skip union type on UseIdenticalOverEqualWithSameTypeRector (#7975)
  • [CodingStyle] Mirror comment on SplitDoubleAssignRector (#7977)
  • [phpstan] remove copuel fixed phpstan ignores (#7979)
  • trigger code analysis on main (rectorphp/rector-src@adb24d0)
  • [CodeQuality] Skip in html for ForRepeatedCountToOwnVariableRector (#7981)
  • Clean up PHPStan ignoreErrors (#7982)
  • Fix typo namespace Sourde -> Source in rules-tests/TypeDeclarationDocblocks (#7983)
  • cs (rectorphp/rector-src@7805989)
  • [Naming] Handle rename with use after anonymous class on RenameParamToMatchTypeRector (#7984)
  • [DX] Fix run on custom rector config when no rector.php (#7985)
  • Temporary pin nette/utils version to 4.1.3 (#7986)
  • Bump to nette/utils ^4.1.4 (#7987)

Removed 💀

  • [remove] Remove deprecated StmtsAwareInterface (#7978)
  • [remove] Remove deprecated FileWithoutNamespace and ScopeResolverNodeVisitorInterface (#7980)
  • remove docker-metadata files, as no longer maintained (rectorphp/rector-src@2166603)

rectorphp/rector-symfony

  • [symfony 2.4] skip no-route in GetRequestRector (#933)
  • fix(CommandHelpToAttributeRector): support concatenated string in setHelp() (#932), Thanks @androshchuk

rectorphp/rector-phpunit

  • [CodeQuality] Handle on static closure on WithCallbackIdenticalToStandaloneAssertsRector (#672)
  • ReplaceTestAnnotationWithPrefixedFunctionRector does not match @ test annotation if it is being part of string (#671), Thanks @Dukecz
  • [PHPUnit12] Skip used as next arg with MockObject Type on ExpressionCreateMockToCreateStubRector (#670)
  • [CodeQuality] Skip multiple uses variable as arg after defined on BareCreateMockAssignToDirectUseRector (#669)

rectorphp/rector-downgrade-php

  • [DowngradePhp80] Handle combine DowngradeMixedTypeDeclarationRector+DowngradeAttributeToAnnotationRector on declare(strict_types=1) inline after open php tag (#373)
  • remove FileWithoutNamespace (#371)
  • Fix phpstan notice on latest phpstan (#370)

Don't miss a new rector release

NewReleases is sending notifications on new releases.