Skip to content

Commit

Permalink
fix: php 8.4 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Nov 24, 2024
1 parent a8adbd8 commit cbb6aa0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions base.php
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,7 @@ function config($source,$allow=FALSE) {
array_merge([$match['lval']],
str_getcsv($cmd[1]=='config'?
$this->cast($match['rval']):
$match['rval']))
$match['rval'],",",'"', "\\"))
);
}
else {
Expand All @@ -2105,7 +2105,7 @@ function($val) {
// Mark quoted strings with 0x00 whitespace
str_getcsv(preg_replace(
'/(?<!\\\\)(")(.*?)\1/',
"\\1\x00\\2\\1",trim($rval)))
"\\1\x00\\2\\1",trim($rval)),",",'"', "\\")
);
preg_match('/^(?<section>[^:]+)(?:\:(?<func>.+))?/',
$sec,$parts);
Expand Down Expand Up @@ -2377,7 +2377,6 @@ function __construct() {
} else {
$check = error_reporting((E_ALL | E_STRICT) & ~(E_NOTICE | E_USER_NOTICE));
}

set_exception_handler(
function($obj) {
/** @var Exception $obj */
Expand Down

0 comments on commit cbb6aa0

Please sign in to comment.