Skip to content

Commit c4d2f35

Browse files
Fix json-encoding when JSON_THROW_ON_ERROR is used
1 parent 6eec58d commit c4d2f35

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Descriptor/JsonDescriptor.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ private function writeData(array $data, array $options)
9999
{
100100
$flags = isset($options['json_encoding']) ? $options['json_encoding'] : 0;
101101

102-
if (\PHP_VERSION_ID >= 70300 && (JSON_THROW_ON_ERROR & $flags)) {
103-
// Work around https://bugs.php.net/77997
104-
json_encode(null);
105-
}
106-
107102
$this->write(json_encode($data, $flags));
108103
}
109104

0 commit comments

Comments
 (0)