mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-21 17:11:53 +02:00
[ticket/17176] Clear up error handler code for psalm
PHPBB3-17176
This commit is contained in:
@@ -15,7 +15,6 @@ namespace phpbb\debug;
|
|||||||
|
|
||||||
use Symfony\Component\ErrorHandler\BufferingLogger;
|
use Symfony\Component\ErrorHandler\BufferingLogger;
|
||||||
use Symfony\Component\ErrorHandler\DebugClassLoader;
|
use Symfony\Component\ErrorHandler\DebugClassLoader;
|
||||||
use Symfony\Component\ErrorHandler\ErrorHandler;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers all the debug tools.
|
* Registers all the debug tools.
|
||||||
|
@@ -21,7 +21,10 @@ use Symfony\Component\ErrorHandler\ErrorHandler;
|
|||||||
*/
|
*/
|
||||||
class error_handler extends 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);
|
parent::__construct($bootstrappingLogger, $debug);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user