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 0c866ad commit d768453Copy full SHA for d768453
src/Exercise/HaveTheLastSay.php
@@ -116,9 +116,10 @@ public function check(Input $input): ResultInterface
116
return $result;
117
}
118
119
- $funcCall = (new NodeFinder())->findFirst($statements, function ($node) {
120
- return $node instanceof FuncCall && $node->name->toString() === 'fgetcsv';
121
- });
+ $funcCall = (new NodeFinder())->findFirst(
+ $statements,
+ fn ($node) => $node instanceof FuncCall && $node->name->toString() === 'fgetcsv'
122
+ );
123
124
if ($funcCall->args[0]->name !== null) {
125
return Failure::fromNameAndReason(
0 commit comments