1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-29 16:00:27 +02:00

Build tweaks

This commit is contained in:
Jordi Boggiano
2020-12-09 16:54:31 +01:00
parent fd305da67b
commit ec146b38bd
7 changed files with 24 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class MongoDBFormatter implements FormatterInterface
$this->maxNestingLevel = max($maxNestingLevel, 0);
$this->exceptionTraceAsString = $exceptionTraceAsString;
$this->isLegacyMongoExt = version_compare(phpversion('mongodb'), '1.1.9', '<=');
$this->isLegacyMongoExt = extension_loaded('mongodb') && version_compare(phpversion('mongodb'), '1.1.9', '<=');
}
/**