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 3c702e3 commit 4495c48Copy full SHA for 4495c48
src/Reflection/ParametersAcceptorSelector.php
@@ -267,8 +267,7 @@ public static function selectFromArgs(
267
268
$closureBindToVar = $args[0]->getAttribute(ClosureBindToVarVisitor::ATTRIBUTE_NAME);
269
if (
270
- $closureBindToVar !== null
271
- && $closureBindToVar instanceof Node\Expr\Variable
+ $closureBindToVar instanceof Node\Expr\Variable
272
&& is_string($closureBindToVar->name)
273
) {
274
$varType = $scope->getType($closureBindToVar);
0 commit comments