File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 26
26
- uses : " ramsey/composer-install@v2"
27
27
28
28
# downgrade /src to PHP 7.2
29
- - run : vendor/bin/rector process src --config build/rector-downgrade-php-72.php --ansi
30
- - run : vendor/bin/ecs check src --fix --ansi
29
+ - run : vendor/bin/rector process src config --config build/rector-downgrade-php-72.php --ansi
30
+ - run : vendor/bin/ecs check src config --fix --ansi
31
31
32
32
# copy PHP 7.2 composer
33
33
- run : cp build/composer-php-72.json composer.json
Original file line number Diff line number Diff line change @@ -125,8 +125,9 @@ private function shouldSkip(StaticCall|FuncCall $node): bool
125
125
$ classMethod = $ this ->betterNodeFinder ->findParentType ($ node , ClassMethod::class);
126
126
if ($ classMethod instanceof ClassMethod) {
127
127
$ classMethodReflection = $ this ->reflectionResolver ->resolveMethodReflectionFromClassMethod ($ classMethod );
128
- if ($ classMethodReflection ?->getPrototype()?->getDeclaringClass()?->getName() !== $ class ->namespacedName ?->toString()
129
- ) {
128
+ $ classMethodNamespaceName = $ classMethodReflection ?->getPrototype()?->getDeclaringClass()?->getName();
129
+ $ classNamespaceName = $ class ->namespacedName ?->toString();
130
+ if ($ classMethodNamespaceName !== $ classNamespaceName ) {
130
131
return true ;
131
132
}
132
133
}
You can’t perform that action at this time.
0 commit comments