1
0
Fork 0

use FunctionLike Interface

pull/505/head
jens1o 2017-10-28 14:16:13 +02:00
parent 1db6b7bbb3
commit fa4240880c
No known key found for this signature in database
GPG Key ID: C7437FC1B445CC49
1 changed files with 1 additions and 4 deletions

View File

@ -40,10 +40,7 @@ function getFunctionLikeDeclarationFromParameter(Node\Parameter $node)
function isFunctionLike(Node $node) function isFunctionLike(Node $node)
{ {
return return $node instanceof PhpParser\FunctionLike;
$node instanceof Node\Statement\FunctionDeclaration ||
$node instanceof Node\MethodDeclaration ||
$node instanceof Node\Expression\AnonymousFunctionCreationExpression;
} }
function isBooleanExpression($expression) : bool function isBooleanExpression($expression) : bool