[ticket/17176] Clear up error handler code for psalm

PHPBB3-17176
This commit is contained in:
Marc Alexander 2023-09-21 16:36:56 +02:00
parent 384405d8e0
commit 2d06dd03f0
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

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