Skip to content

Commit d50bbee

Browse files
Merge branch '4.2' into 4.3
* 4.2: [HttpKernel] Fix handling non-catchable fatal errors Fix json-encoding when JSON_THROW_ON_ERROR is used [HttpFoundation] work around PHP 7.3 bug related to json_encode() [Security] added support for updated \"distinguished name\" format in x509 authentication
2 parents feaf0a9 + 8877cdc commit d50bbee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Descriptor/JsonDescriptor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ protected function describeApplication(Application $application, array $options
9797
*/
9898
private function writeData(array $data, array $options)
9999
{
100-
$this->write(json_encode($data, isset($options['json_encoding']) ? $options['json_encoding'] : 0));
100+
$flags = isset($options['json_encoding']) ? $options['json_encoding'] : 0;
101+
102+
$this->write(json_encode($data, $flags));
101103
}
102104

103105
/**

0 commit comments

Comments
 (0)