From 2d06dd03f0af59a9febfec4ab391a72c38e0d68d Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 21 Sep 2023 16:36:56 +0200 Subject: [PATCH] [ticket/17176] Clear up error handler code for psalm PHPBB3-17176 --- phpBB/phpbb/debug/debug.php | 1 - phpBB/phpbb/debug/error_handler.php | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/debug/debug.php b/phpBB/phpbb/debug/debug.php index bc7b5e22da..af387dbd3d 100644 --- a/phpBB/phpbb/debug/debug.php +++ b/phpBB/phpbb/debug/debug.php @@ -15,7 +15,6 @@ namespace phpbb\debug; use Symfony\Component\ErrorHandler\BufferingLogger; use Symfony\Component\ErrorHandler\DebugClassLoader; -use Symfony\Component\ErrorHandler\ErrorHandler; /** * Registers all the debug tools. diff --git a/phpBB/phpbb/debug/error_handler.php b/phpBB/phpbb/debug/error_handler.php index e05f0798ee..89da70e619 100644 --- a/phpBB/phpbb/debug/error_handler.php +++ b/phpBB/phpbb/debug/error_handler.php @@ -21,7 +21,10 @@ use Symfony\Component\ErrorHandler\ErrorHandler; */ class error_handler extends ErrorHandler { - public function __construct(BufferingLogger $bootstrappingLogger = null, private bool $debug = false) + /** + * @psalm-suppress MethodSignatureMismatch + */ + public function __construct(BufferingLogger $bootstrappingLogger = null, private readonly bool $debug = false) { parent::__construct($bootstrappingLogger, $debug); }