Skip to content

Commit 4495c48

Browse files
committed
remove unnecessary condition
1 parent 3c702e3 commit 4495c48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Reflection/ParametersAcceptorSelector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ public static function selectFromArgs(
267267

268268
$closureBindToVar = $args[0]->getAttribute(ClosureBindToVarVisitor::ATTRIBUTE_NAME);
269269
if (
270-
$closureBindToVar !== null
271-
&& $closureBindToVar instanceof Node\Expr\Variable
270+
$closureBindToVar instanceof Node\Expr\Variable
272271
&& is_string($closureBindToVar->name)
273272
) {
274273
$varType = $scope->getType($closureBindToVar);

0 commit comments

Comments
 (0)