diff --git a/src/DataCollector/MongoDbDataCollector.php b/src/DataCollector/MongoDbDataCollector.php index 6e5e4ae..70a1727 100644 --- a/src/DataCollector/MongoDbDataCollector.php +++ b/src/DataCollector/MongoDbDataCollector.php @@ -49,10 +49,7 @@ public function collect(Request $request, Response $response, \Exception $except /** @var Query $event */ $event = $this->logger->getLoggedEvent(); - // with extension version under 1.2.4 some Mongo objects can't be automatically serialized - if (-1 === version_compare(phpversion('mongodb'), '1.2.4')) { - MongoQuerySerializer::serialize($event); - } + MongoQuerySerializer::serialize($event); $this->data[self::QUERY_KEYWORD][] = $event; $this->data[self::TIME_KEYWORD] += $event->getExecutionTime();