github rectorphp/rector 2.3.6
Released Rector 2.3.6

5 hours ago

New Features 🥳


Bugfixes 🐛

  • [Php83] Handle parent class consume trait on AddOverrideAttributeToOverriddenMethodsRector (#7868)
  • Fix fixture source warning on AddOverrideAttributeToOverriddenMethodsRector (missing TestCase suffix) (#7869)
  • add JSON_THROW_ON_ERROR even if there is already a flag (#7867), Thanks @Lenny4!
  • [DeadCode] No need additional parentheses () on multiply to function call (#7883)
  • [Php80] Handle crash on empty name attribute field value on AnnotationToAttributeRector (#7864)
  • Fix JsonValidateRector: remove associative argument not supported by json_validate (#7865), Thanks @carlos-granados!
  • Fix deep ArrayItem scope filling on Foreach_ value (#7873)
  • Fix StaticCallOnNonStaticToInstanceCallRector for same-class calls (#7876), Thanks @carlos-granados!
  • Bump PHPStan to 2.1.38 (#7879)
  • [DeadCode] Allow remove @var on expression assign on RemoveUselessVarTagRector (#7871)
  • [DeadCode] Handle multiply to parenthesized on RemoveDeadZeroAndOneOperationRector (#7882)

rectorphp/rector-symfony 🎵


rectorphp/rector-phpunit 🟢

  • [phpunit 12] Add CreateStubInCoalesceArgRector (#650)
  • [code-quality] Add DecorateWillReturnMapWithExpectsMockRector (#649)
  • [code-quality] Add RemoveStandaloneCreateMockRector (#648)
  • add class method (#647)
  • improve check for used mock property (#646)
  • skip if used in array (#645)
  • [code-quality] Add RemoveNeverUsedMockPropertyRector (#644)
  • [phpunit 12] Add AllowMockObjectsForDataProviderRector (#643)
  • add to setUp with only variables (#642)
  • [phpunit 12] Add AllowMockObjectsWhereParentClassRector (#641)
  • improve AllowMockObjectsWithoutExpectationsAttributeRector (#639)
  • add fixture (#638)
  • handle in call likes as well (#637)
  • [code-quality] Add InlineStubPropertyToCreateStubMethodCallRector (#636)
  • skip property fetch in CreateStubOverCreateMockArgRector (#635)
  • [phpunit 12] Add PropertyCreateMockToCreateStubRector (#634)
  • add variable support to CreateStubOverCreateMockArgRector (#633)
  • [CodeQuality] Add failing fixture crash on deep ArrayItem as Foreach_ value on DirectInstanceOverMockArgRector (#632)
  • skip abstract entity and interface, as cannot be instantiated (#630)
  • [code-quality] Add ConfiguredMockEntityToSetterObjectRector (#629)
  • [code-quality] Add AssertThatToDirectAssertRector (#627)
  • [phpunit 12] Add ExpressionCreateMockToCreateStubRector (#626)
  • cover interfaces in BareCreateMockAssignToDirectUseRector (#625)
  • [code-quality] Add SuffixMockObjectPropertyRector, not enabled (#622)
  • [phpunit 12] Add ExplicitMockExpectsCallRector (#621)

Don't miss a new rector release

NewReleases is sending notifications on new releases.