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:
@@ -165,6 +165,10 @@ class JsonFormatter extends NormalizerFormatter
|
||||
return $this->normalizeException($data);
|
||||
}
|
||||
|
||||
if (is_resource($data)) {
|
||||
return parent::normalize($data);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user