diff --git a/src/DataCollector/MongoLogEventSerializer.php b/src/DataCollector/MongoLogEventSerializer.php index a2f4ed7..e2fd214 100644 --- a/src/DataCollector/MongoLogEventSerializer.php +++ b/src/DataCollector/MongoLogEventSerializer.php @@ -22,11 +22,11 @@ public static function serialize(LogEvent $event) } /** - * @param array $data + * @param array|object $data * - * @return array + * @return array|object */ - private static function prepareUnserializableData(array $data): array + private static function prepareUnserializableData($data) { foreach ($data as $key => $item) { if (method_exists($item, 'getArrayCopy')) {