1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-09-06 11:10:45 +02:00

Fix JSON formatting of resource type, closes #1410

This commit is contained in:
theravel
2019-12-10 23:20:58 +01:00
committed by Jordi Boggiano
parent 0d733f9297
commit 9621075c0f
2 changed files with 12 additions and 0 deletions

View File

@@ -165,6 +165,10 @@ class JsonFormatter extends NormalizerFormatter
return $this->normalizeException($data);
}
if (is_resource($data)) {
return parent::normalize($data);
}
return $data;
}