1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/14177] CS

PHPBB3-14177
This commit is contained in:
Tristan Darricau
2015-12-11 21:39:24 +01:00
parent dee22f4a28
commit 6ffbd26377
2 changed files with 20 additions and 11 deletions

View File

@@ -14,13 +14,12 @@
namespace phpbb\debug;
use Symfony\Component\Debug\ErrorHandler;
use Symfony\Component\Filesystem\Exception\IOException;
class error_handler extends ErrorHandler
{
public function handleError($type, $message, $file, $line, array $context, array $backtrace = null)
{
if ($type === E_USER_WARNING|| $type === E_USER_NOTICE)
if ($type === E_USER_WARNING || $type === E_USER_NOTICE)
{
$handler = defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler';