Skip to content

Commit

Permalink
fix serializer typehinting
Browse files Browse the repository at this point in the history
  • Loading branch information
Algatux committed Sep 10, 2016
1 parent 81bf625 commit 53085ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataCollector/MongoLogEventSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 53085ec

Please sign in to comment.