|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
$decoded = json_decode($content); |
|
79
|
79
|
|
|
80
|
80
|
if (json_last_error() !== JSON_ERROR_NONE) { |
|
81
|
|
- throw new \RuntimeException('Decoding error: "' . json_last_error_msg() . '""'); |
|
|
81
|
+ throw new \RuntimeException('Decoding error: "'.json_last_error_msg().'""'); |
|
82
|
82
|
} |
|
83
|
83
|
|
|
84
|
84
|
return $this->hydrator->hydrate($decoded); |
|
@@ -95,7 +95,7 @@ discard block |
|
|
block discarded – undo |
|
95
|
95
|
$encoded = json_encode($document->toArray()); |
|
96
|
96
|
|
|
97
|
97
|
if (json_last_error() !== JSON_ERROR_NONE) { |
|
98
|
|
- throw new \RuntimeException('Encoding error: "' . json_last_error_msg() . '""'); |
|
|
98
|
+ throw new \RuntimeException('Encoding error: "'.json_last_error_msg().'""'); |
|
99
|
99
|
} |
|
100
|
100
|
|
|
101
|
101
|
$stream = fopen('php://memory', 'r+'); |
Please login to merge, or discard this patch.