1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Notices: Enable E_NOTICE and E_STRICT

This commit is contained in:
Jakub Vrana
2025-03-23 22:11:05 +01:00
parent 9e52f0fa2e
commit 708646156a

View File

@@ -1,7 +1,7 @@
<?php
namespace Adminer;
error_reporting(6135); // errors and warnings
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_WARNING | E_NOTICE); // warning since PHP 8.0