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

A subscript applied to a value of a type without subscripting.

Source: https://www.postgresql.org/docs/17/sql-expressions.html#SQL-EXPRESSIONS-SUBSCRIPTS.

Reading the messagedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\Problem\NotSubscriptable('integer'))->message() // => 'Cannot subscript type integer because it does not support subscripting.'

Properties§

public string $type

Methods§

public function __construct(public string $type)

Parameters

$typestringThe type of the value
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1