function CallLike::isFirstClassCallable
Returns whether this call expression is actually a first class callable.
1 call to CallLike::isFirstClassCallable()
- CallLike::getArgs in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ CallLike.php - Assert that this is not a first-class callable and return only ordinary Args.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ CallLike.php, line 21
Class
Namespace
PhpParser\Node\ExprCode
public function isFirstClassCallable() : bool {
$rawArgs = $this->getRawArgs();
return count($rawArgs) === 1 && current($rawArgs) instanceof VariadicPlaceholder;
}