mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-29 11:26:09 +01:00
Merge pull request #1384 from amino-garricklam/skip_normalize_traversable
JsonFormatter: Don't even try to attempt normalizing iterators or generators in context
This commit is contained in:
@@ -145,7 +145,7 @@ class JsonFormatter extends NormalizerFormatter
|
||||
return 'Over 9 levels deep, aborting normalization';
|
||||
}
|
||||
|
||||
if (is_array($data) || $data instanceof \Traversable) {
|
||||
if (is_array($data)) {
|
||||
$normalized = array();
|
||||
|
||||
$count = 1;
|
||||
|
||||
Reference in New Issue
Block a user