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); }