mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 20:31:19 +02:00
Notices: Enable E_NOTICE and E_STRICT
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user