Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CallLike.php

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

CallLike

Namespace

PhpParser\Node\Expr

Code

public function isFirstClassCallable() : bool {
    $rawArgs = $this->getRawArgs();
    return count($rawArgs) === 1 && current($rawArgs) instanceof VariadicPlaceholder;
}
RSS feed
Powered by Drupal