Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string |
||
22 | { |
||
23 | // @codeCoverageIgnoreStart |
||
24 | if (! $valueNode instanceof StringValueNode) { |
||
25 | throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, $valueNode); |
||
|
|||
26 | } |
||
27 | |||
28 | // @codeCoverageIgnoreEnd |
||
29 | |||
30 | return $valueNode->value; |
||
31 | } |
||
51 |