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

Breadcrumb

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

function Callback::matches

Evaluates the constraint for parameter $value. Returns true if the constraint is met, false otherwise.

@psalm-param CallbackInput $other

@psalm-suppress InvalidArgument

Overrides Constraint::matches

File

vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php, line 65

Class

Callback
@psalm-template CallbackInput of mixed

Namespace

PHPUnit\Framework\Constraint

Code

protected function matches(mixed $other) : bool {
    if ($this->isVariadic()) {
        return ($this->callback)(...$other);
    }
    return ($this->callback)($other);
}
RSS feed
Powered by Drupal