1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +02:00

[ticket/17176] Use symfony error handler instead of debug

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-09-21 13:15:57 +02:00
parent 043d7286e0
commit 5231e04d49
4 changed files with 12 additions and 82 deletions

View File

@@ -13,7 +13,7 @@
namespace phpbb\debug;
use Symfony\Component\Debug\ErrorHandler;
use Symfony\Component\ErrorHandler\ErrorHandler;
/**
* @psalm-suppress InvalidExtendClass
@@ -23,7 +23,7 @@ class error_handler extends ErrorHandler
/**
* @psalm-suppress MethodSignatureMismatch
*/
public function handleError($type, $message, $file, $line)
public function handleError(int $type, string $message, string $file, int $line): bool
{
if ($type === E_USER_WARNING || $type === E_USER_NOTICE)
{