From eb192b9b06dfca8b38d2f8b34d17a2a2b9ecc004 Mon Sep 17 00:00:00 2001 From: TomasVotruba <924196+TomasVotruba@users.noreply.github.com> Date: Sun, 22 Feb 2026 00:48:46 +0000 Subject: [PATCH] [automated] Apply Coding Standard --- .../ClassMethod/RemoveParentDelegatingConstructorRector.php | 6 +++++- .../AddOverrideAttributeToOverriddenMethodsRector.php | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php b/rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php index c76d474b9f8..a8ce2bd02f6 100644 --- a/rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php +++ b/rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php @@ -232,7 +232,11 @@ private function areConstructorAndParentParameterTypesMatching( // no type override if ($parameterType === null) { - if ($param->default instanceof Expr && $this->isDifferentDefaultValue($param->default, $extendedMethodReflection, $position)) { + if ($param->default instanceof Expr && $this->isDifferentDefaultValue( + $param->default, + $extendedMethodReflection, + $position + )) { return false; } diff --git a/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php b/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php index f281df48399..c59fd780692 100644 --- a/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php +++ b/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php @@ -246,7 +246,9 @@ private function shouldSkipClassMethod(ClassMethod $classMethod): bool } // skip test setup method override, as rather clutters the code than helps - return $this->isNames($classMethod, ['setUp', 'tearDown']) && $this->parentClassAnalyzer->hasParentCall($classMethod); + return $this->isNames($classMethod, ['setUp', 'tearDown']) && $this->parentClassAnalyzer->hasParentCall( + $classMethod + ); } private function shouldSkipParentClassMethod(ClassReflection $parentClassReflection, ClassMethod $classMethod): bool