Skip to content

Commit 4752a0a

Browse files
committed
PHP 8.4: E_STRICT constant deprecated
From PHP 8.4 the E_STRICT constant has been deprecated and will emit deprecation notices. For details see: https://php.watch/versions/8.4/E_STRICT-deprecated Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 210788e commit 4752a0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Server.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,10 @@ public static function _xmlrpcs_errorHandler($errCode, $errString, $filename = n
14171417
}
14181418

14191419
//if ($errCode != E_NOTICE && $errCode != E_WARNING && $errCode != E_USER_NOTICE && $errCode != E_USER_WARNING)
1420-
if ($errCode != E_STRICT) {
1420+
if (PHP_VERSION_ID >= 70400) {
14211421
static::error_occurred($errString);
1422+
} elseif ($errCode != E_STRICT) {
1423+
static::error_occurred($errString);
14221424
}
14231425

14241426
// Try to avoid as much as possible disruption to the previous error handling mechanism in place

0 commit comments

Comments
 (0)