Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
84 | 8 | public function parseLiteral($valueNode, ?array $variables = null) |
|
85 | { |
||
86 | 8 | if ($valueNode instanceof FloatValueNode || $valueNode instanceof IntValueNode) { |
|
87 | 4 | return (float) $valueNode->value; |
|
88 | } |
||
89 | |||
90 | // Intentionally without message, as all information already in wrapped Exception |
||
91 | 4 | throw new Exception(); |
|
92 | } |
||
94 |