Skip to content

Commit b9ffeff

Browse files
Fix json-encoding when JSON_THROW_ON_ERROR is used
1 parent 31c073b commit b9ffeff

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Console/Descriptor/JsonDescriptor.php

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

189-
if (\PHP_VERSION_ID >= 70300 && (JSON_THROW_ON_ERROR & $flags)) {
190-
// Work around https://bugs.php.net/77997
191-
json_encode(null);
192-
}
193-
194189
$this->write(json_encode($data, $flags | JSON_PRETTY_PRINT)."\n");
195190
}
196191

0 commit comments

Comments
 (0)