Skip to content

Commit

Permalink
PHP 8.4: E_STRICT constant deprecated
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ziegenberg committed Jan 17, 2025
1 parent 210788e commit 4752a0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1417,8 +1417,10 @@ public static function _xmlrpcs_errorHandler($errCode, $errString, $filename = n
}

//if ($errCode != E_NOTICE && $errCode != E_WARNING && $errCode != E_USER_NOTICE && $errCode != E_USER_WARNING)
if ($errCode != E_STRICT) {
if (PHP_VERSION_ID >= 70400) {
static::error_occurred($errString);
} elseif ($errCode != E_STRICT) {
static::error_occurred($errString);
}

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

0 comments on commit 4752a0a

Please sign in to comment.