|
@@ -34,7 +34,9 @@ |
|
|
block discarded – undo |
|
34
|
34
|
$built = is_null($this->value) ? null : $this->value->build(); |
|
35
|
35
|
$stringKey = is_string($built) && Regex::isProperlyQuoted($built) ? trim($built, '\'" '): $built; |
|
36
|
36
|
$key = json_encode($stringKey, JSON_PARTIAL_OUTPUT_ON_ERROR|JSON_UNESCAPED_SLASHES); |
|
37
|
|
- if (empty($key)) throw new \Exception("Cant serialize complex key: ".var_export($this->value, true)); |
|
|
37
|
+ if (empty($key)) { |
|
|
38
|
+ throw new \Exception("Cant serialize complex key: ".var_export($this->value, true)); |
|
|
39
|
+ } |
|
38
|
40
|
$parent->{trim($key, '\'" ')} = null; |
|
39
|
41
|
return null; |
|
40
|
42
|
} |
Please login to merge, or discard this patch.