mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17176] Clear up error handler code for psalm
PHPBB3-17176
This commit is contained in:
parent
384405d8e0
commit
2d06dd03f0
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue