Skip to content

Commit 022a752

Browse files
Merge pull request #7 from ilyashtrikul/5.6
Fix monolog compatibility
2 parents f0cddbb + 2985a32 commit 022a752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Loggable/FileChannel/MonologFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function convertToString($data)
3131
return parent::convertToString($data);
3232
}
3333

34-
protected function normalize($data)
34+
protected function normalize($data, $depth = 0)
3535
{
3636
if (is_array($data) || ($data instanceof Traversable)) {
3737
$normalized = [];
@@ -41,6 +41,6 @@ protected function normalize($data)
4141
return $normalized;
4242
}
4343

44-
return parent::normalize($data);
44+
return parent::normalize($data, $depth);
4545
}
4646
}

0 commit comments

Comments
 (0)