Change error handler errors
This commit is contained in:
parent
ac27906e6b
commit
5ae976d5d8
@ -38,7 +38,10 @@ class AdditionalConfiguration
|
||||
'displayErrors' => 1,
|
||||
'systemLogLevel' => 0,
|
||||
'exceptionalErrors' => 12290,
|
||||
'errorHandlerErrors' => 0,
|
||||
'errorHandlerErrors' => E_ALL & ~(
|
||||
2048 /* deprecated E_STRICT */ | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR
|
||||
| E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR
|
||||
),
|
||||
],
|
||||
];
|
||||
|
||||
@ -52,21 +55,6 @@ class AdditionalConfiguration
|
||||
'transport_smtp_server' => 'mailpit:1025'
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
if (PHP_VERSION_ID >= 80400) {
|
||||
$this->developConfig['SYS']['errorHandlerErrors'] = E_ALL & ~(
|
||||
\E_NOTICE | \E_WARNING | \E_COMPILE_WARNING | \E_COMPILE_ERROR
|
||||
| \E_CORE_WARNING | \E_CORE_ERROR | \E_PARSE | \E_ERROR
|
||||
);
|
||||
} else {
|
||||
$this->developConfig['SYS']['errorHandlerErrors'] = \E_ALL & ~(
|
||||
\E_STRICT | \E_NOTICE | \E_WARNING | \E_COMPILE_WARNING | \E_COMPILE_ERROR
|
||||
| \E_CORE_WARNING | \E_CORE_ERROR | \E_PARSE | \E_ERROR
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function initialize(array $configuration = []): void
|
||||
{
|
||||
$this->addContextToSitename();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user