From 53085ec008c95cff70adb54c10e73be24c245efd Mon Sep 17 00:00:00 2001 From: Alessandro Galli Date: Sat, 10 Sep 2016 20:28:02 +0200 Subject: [PATCH] fix serializer typehinting --- src/DataCollector/MongoLogEventSerializer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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')) {