@@ -181,9 +181,9 @@ |
||
| 181 | 181 | $this->value = $nodeValue; |
| 182 | 182 | return; |
| 183 | 183 | } elseif (in_array($first, ['{', '['])) { |
| 184 | - $this->onCompact(trim($nodeValue)); |
|
| 185 | - return; |
|
| 186 | - } elseif (in_array($first, ['!', '&', '*'])) { |
|
| 184 | + $this->onCompact(trim($nodeValue)); |
|
| 185 | + return; |
|
| 186 | + } elseif (in_array($first, ['!', '&', '*'])) { |
|
| 187 | 187 | $this->onNodeAction($nodeValue); |
| 188 | 188 | return; |
| 189 | 189 | } elseif(in_array($first, ['?', ':'])) {// Note : php don't like '?' as an array key -_-' |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | if ($n->type & (Y::REF_CALL|Y::SCALAR)) return self::getScalar((string) $n->value); |
| 28 | 28 | if ($n->type & Y::JSON) return $n->value; |
| 29 | 29 | $expected = [Y::QUOTED => trim((string) $n->value, "\"'"), |
| 30 | - Y::RAW => strval((string) $n->value)]; |
|
| 30 | + Y::RAW => strval((string) $n->value)]; |
|
| 31 | 31 | return $expected[$n->type] ?? null; |
| 32 | 32 | } |
| 33 | 33 | |