]> git.joonet.de Git - adminer.git/commitdiff
Notices: Enable E_NOTICE and E_STRICT
authorJakub Vrana <jakub@vrana.cz>
Sun, 23 Mar 2025 21:11:05 +0000 (22:11 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 06:30:20 +0000 (07:30 +0100)
adminer/include/errors.inc.php

index 84cb52c9ce57d5e0a2dbf43ab178889c8c8ed2b7..f27ed108dd52202e2c1e9c38ded58f67d074146a 100644 (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