mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Notices: Require declared properties
This commit is contained in:
@@ -3,5 +3,5 @@ namespace Adminer;
|
|||||||
|
|
||||||
error_reporting(24575); // all but E_DEPRECATED (overriding mysqli methods without types is deprecated)
|
error_reporting(24575); // all but E_DEPRECATED (overriding mysqli methods without types is deprecated)
|
||||||
set_error_handler(function ($errno, $errstr) {
|
set_error_handler(function ($errno, $errstr) {
|
||||||
return !!preg_match('~^(Trying to access array offset on( value of type)? null|Undefined (array key|property))~', $errstr);
|
return !!preg_match('~^(Trying to access array offset on( value of type)? null|Undefined array key)~', $errstr);
|
||||||
}, E_WARNING | E_NOTICE); // warning since PHP 8.0
|
}, E_WARNING | E_NOTICE); // warning since PHP 8.0
|
||||||
|
Reference in New Issue
Block a user