diff --git a/src/Controller/CheckController.php b/src/Controller/CheckController.php index dec42ff..88ddbf3 100644 --- a/src/Controller/CheckController.php +++ b/src/Controller/CheckController.php @@ -1,7 +1,8 @@ -response == "pong") { $result = $apiResult->response; @@ -60,9 +61,9 @@ class CheckController $result = 'Unhandled error: ' . $httpResponse; } } else { - $result = curl_error($curl); + $result = curl_error(handle: $curl); } - curl_close($curl); + curl_close(handle: $curl); return [ 'data' => $result, 'header' => $httpResponse ?? ''