classCallMisuse
final class CallMisuse
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A call that uses a clause the function called does not accept.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\CallMisuse(
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\CallMisuseKind::WindowWithoutOver,
new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('rank'),
))->message() // => 'window function rank requires an OVER clause'Properties§
public CallMisuseKind $kindpublic Name $functionMethods§
public function __construct(public CallMisuseKind $kind, public Name $function)Parameters
$kind | CallMisuseKind | The clause and the kind of function |
$function | Name | The name of the function called |
public function message(): stringDescribes the problem as the server does.
Returns
stringTest cases 1
Calls 1
- function-call
str_replaceline 38
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.