Skip to content

Commit

Permalink
Merge pull request ganglia#370 from jh23453/patch-4
Browse files Browse the repository at this point in the history
Update error handler for php 7.2
  • Loading branch information
vvuksan authored Feb 16, 2024
2 parents 0f3a49a + 0846560 commit 4c219ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/common_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ function api_return_ok ( $message ) {

// Handle PHP error
set_error_handler("ganglia_api_error_handler");
function ganglia_api_error_handler ($no, $str, $file, $line, $context) {
$context; // PHPCS
function ganglia_api_error_handler ($no, $str, $file, $line) {
switch ($no) {
case E_ERROR:
case E_CORE_ERROR:
Expand Down

0 comments on commit 4c219ce

Please sign in to comment.