We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d6543 commit 6392d6dCopy full SHA for 6392d6d
rules/CodeQuality/Rector/FuncCall/SortNamedParamRector.php
@@ -75,12 +75,8 @@ public function refactor(Node $node): ?Node
75
if ($node instanceof CallLike && $node->isFirstClassCallable()) {
76
return null;
77
}
78
+ $args = $node instanceof Attribute ? $node->args : $node->getArgs();
79
- if ($node instanceof Attribute) {
80
- $args = $node->args;
81
- } else {
82
- $args = $node->getArgs();
83
- }
84
if (count($args) <= 1) {
85
86
0 commit comments