use FunctionLike Interface
parent
1db6b7bbb3
commit
fa4240880c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue