1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 06:37:33 +02:00

Notices: Require declared properties

This commit is contained in:
Jakub Vrana
2025-03-24 06:08:07 +01:00
parent 3dd1b41472
commit 9b84908b99

View File

@@ -3,5 +3,5 @@ namespace Adminer;
error_reporting(24575); // all but E_DEPRECATED (overriding mysqli methods without types is deprecated)
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