diff --git a/Model/Logger.php b/Model/Logger.php index 92e64eb..77c2714 100644 --- a/Model/Logger.php +++ b/Model/Logger.php @@ -44,7 +44,7 @@ public function __construct(LoggerInterface $log, State $state) /** * {@inheritdoc} */ - public function emergency($message, array $context = []) + public function emergency($message, array $context = []): void { $this->log->emergency('[TweakWise] ' . $message, $context); } @@ -52,7 +52,7 @@ public function emergency($message, array $context = []) /** * {@inheritdoc} */ - public function alert($message, array $context = []) + public function alert($message, array $context = []): void { $this->log->alert('[TweakWise] ' . $message, $context); } @@ -60,7 +60,7 @@ public function alert($message, array $context = []) /** * {@inheritdoc} */ - public function critical($message, array $context = []) + public function critical($message, array $context = []): void { $this->log->critical('[TweakWise] ' . $message, $context); } @@ -68,7 +68,7 @@ public function critical($message, array $context = []) /** * {@inheritdoc} */ - public function error($message, array $context = []) + public function error($message, array $context = []): void { $this->log->error('[TweakWise] ' . $message, $context); } @@ -76,7 +76,7 @@ public function error($message, array $context = []) /** * {@inheritdoc} */ - public function warning($message, array $context = []) + public function warning($message, array $context = []): void { $this->log->warning('[TweakWise] ' . $message, $context); } @@ -84,7 +84,7 @@ public function warning($message, array $context = []) /** * {@inheritdoc} */ - public function notice($message, array $context = []) + public function notice($message, array $context = []): void { $this->log->notice('[TweakWise] ' . $message, $context); } @@ -92,7 +92,7 @@ public function notice($message, array $context = []) /** * {@inheritdoc} */ - public function info($message, array $context = []) + public function info($message, array $context = []): void { $this->log->info('[TweakWise] ' . $message, $context); } @@ -100,7 +100,7 @@ public function info($message, array $context = []) /** * {@inheritdoc} */ - public function debug($message, array $context = []) + public function debug($message, array $context = []): void { if ($this->enableDebugLog) { $this->log->debug('[TweakWise] ' . $message, $context); @@ -110,7 +110,7 @@ public function debug($message, array $context = []) /** * {@inheritdoc} */ - public function log($level, $message, array $context = []) + public function log($level, $message, array $context = []): void { $this->log->log($level, '[TweakWise] ' . $message, $context); } @@ -121,7 +121,7 @@ public function log($level, $message, array $context = []) * @param Exception $exception * @throws Exception */ - public function throwException(Exception $exception) + public function throwException(Exception $exception): void { $this->log->error($exception->getMessage()); throw $exception;