diff --git a/src/DataCollector/MongoQuerySerializer.php b/src/DataCollector/MongoQuerySerializer.php index 1d195fa..0f51ccc 100644 --- a/src/DataCollector/MongoQuerySerializer.php +++ b/src/DataCollector/MongoQuerySerializer.php @@ -24,7 +24,7 @@ public static function serialize(Query $query): void * * @return mixed[] */ - private static function prepareUnserializableData($data, int $maxDepth = 256): array + private static function prepareUnserializableData($data, int $maxDepth = 50): array { if ($data instanceof Serializable) { $data = $data->bsonSerialize(); @@ -43,7 +43,7 @@ private static function prepareUnserializableData($data, int $maxDepth = 256): a * * @return mixed */ - public static function prepareItemData($item, int $maxDepth = 256) + public static function prepareItemData($item, int $maxDepth = 50) { // Prevent infinite recursion if ($maxDepth < 0) {