classNotSubscriptable
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.
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\Problem\NotSubscriptable('integer'))->message() // => 'Cannot subscript type integer because it does not support subscripting.'Properties§
public string $typeMethods§
public function __construct(public string $type)Parameters
$type | string | The type of the value |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.