diff --git a/composer.json b/composer.json index e9d80a2..539e06d 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ ], "require": { "php": ">=5.4", - "doctrine/dbal": "~2.0", - "psr/log": "~1.0", + "doctrine/dbal": "~2.0|~3.0", + "psr/log": "~1.0|~2.0|~3.0", "ext-json": "*", "ext-zlib": "*", "ext-curl": "*" diff --git a/src/Badoo/LiveProfiler/Logger.php b/src/Badoo/LiveProfiler/Logger.php index da946bc..d318b73 100644 --- a/src/Badoo/LiveProfiler/Logger.php +++ b/src/Badoo/LiveProfiler/Logger.php @@ -34,7 +34,7 @@ public function setLogFile($logfile) * @param string $message * @param array $context */ - public function log($level, $message, array $context = array()) + public function log($level, string|\Stringable $message, array $context = []): void { $log_string = $this->getLogMsg($level, $message, $context); file_put_contents($this->logfile, $log_string, FILE_APPEND);