final class WrongArgumentCount
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A call of a built-in function with a number of arguments the function does not accept.

Reading the problem of a call with too many argumentsdoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT abs(1, 2)') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: wrong number of arguments to function abs()

Properties§

public Name $function
public int $arguments

Methods§

public function __construct(public Name $function, public int $arguments)

Parameters

$functionNameThe function name as written
$argumentsintThe number of arguments supplied
public function message(): string

Describes the problem in the words of SQLite.

Returns

string
Test cases 1

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 3

Relations§

Instantiated in 1