From 0d383f1f66efa4694144e48aa01f2a27f0c6fbe3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 11 Jun 2024 11:52:18 +0200 Subject: [PATCH] fix(logger): Fix scoped PSR logger when running psalm:ci Signed-off-by: Joas Schilling --- lib/private/AppFramework/ScopedPsrLogger.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/private/AppFramework/ScopedPsrLogger.php b/lib/private/AppFramework/ScopedPsrLogger.php index 2eaabdbedd7..0a8e2b0d303 100644 --- a/lib/private/AppFramework/ScopedPsrLogger.php +++ b/lib/private/AppFramework/ScopedPsrLogger.php @@ -24,7 +24,7 @@ class ScopedPsrLogger implements LoggerInterface { $this->appId = $appId; } - public function emergency($message, array $context = []) { + public function emergency($message, array $context = []): void { $this->inner->emergency( $message, array_merge( @@ -36,7 +36,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function alert($message, array $context = []) { + public function alert($message, array $context = []): void { $this->inner->alert( $message, array_merge( @@ -48,7 +48,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function critical($message, array $context = []) { + public function critical($message, array $context = []): void { $this->inner->critical( $message, array_merge( @@ -60,7 +60,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function error($message, array $context = []) { + public function error($message, array $context = []): void { $this->inner->error( $message, array_merge( @@ -72,7 +72,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function warning($message, array $context = []) { + public function warning($message, array $context = []): void { $this->inner->warning( $message, array_merge( @@ -84,7 +84,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function notice($message, array $context = []) { + public function notice($message, array $context = []): void { $this->inner->notice( $message, array_merge( @@ -96,7 +96,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function info($message, array $context = []) { + public function info($message, array $context = []): void { $this->inner->info( $message, array_merge( @@ -108,7 +108,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function debug($message, array $context = []) { + public function debug($message, array $context = []): void { $this->inner->debug( $message, array_merge( @@ -120,7 +120,7 @@ class ScopedPsrLogger implements LoggerInterface { ); } - public function log($level, $message, array $context = []) { + public function log($level, $message, array $context = []): void { $this->inner->log( $level, $message, -- 2.39.5