mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue processwire/processwire-issues#1980
This commit is contained in:
@@ -288,7 +288,7 @@ class ProcessWire extends Wire {
|
||||
|
||||
// this is reset in the $this->setConfig() method based on current debug mode
|
||||
ini_set('display_errors', true);
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$config->setWire($this);
|
||||
|
||||
@@ -449,7 +449,7 @@ class ProcessWire extends Wire {
|
||||
|
||||
if($debug) {
|
||||
// If debug mode is on then echo all errors
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
} else {
|
||||
// disable all error reporting
|
||||
|
@@ -158,7 +158,7 @@ class WireShutdown extends Wire {
|
||||
E_USER_ERROR => $this->_('Error'),
|
||||
E_USER_WARNING => $this->_('User Warning'),
|
||||
E_USER_NOTICE => $this->_('User Notice'),
|
||||
E_STRICT => $this->_('Strict Warning'),
|
||||
2048 => $this->_('Strict Warning'), // 2048=E_STRICT (deprecated in PHP 8.4)
|
||||
E_RECOVERABLE_ERROR => $this->_('Recoverable Fatal Error')
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user