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

PHP 8.3 error suppression

PHP 8.3 has shortened the array access on null error message to "Trying to access array offset on null". This commit changes the regular expression used to circumvent errors.
This commit is contained in:
Sneda8
2023-12-17 01:36:25 +01:00
committed by Peter Knut
parent 8ea329538f
commit 00b9fbda08
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php
function adminer_errors($errno, $errstr) {
return !!preg_match('~^(Trying to access array offset on value of type null|Undefined array key)~', $errstr);
return (bool)preg_match('~^(Trying to access array offset on( value of type)? null|Undefined array key)~', $errstr);
}
error_reporting(6135); // errors and warnings

View File

@@ -26,7 +26,7 @@
"GPL-2.0-only"
],
"require": {
"php": "5.6 - 8.1",
"php": "5.6 - 8.3",
"ext-pdo": "*",
"ext-json": "*",
"vrana/jush": "@dev",