Files
adminer/adminer/include/errors.inc.php
2025-03-24 07:30:20 +01:00

8 lines
353 B
PHP

<?php
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);
}, E_WARNING | E_NOTICE); // warning since PHP 8.0