From 0638eac022f413e102199525dff12d2fdba5fa2a Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Tue, 10 May 2016 09:20:25 +0200 Subject: [PATCH] Don't suppress error messages * src/HAB/Pica/Auth/LBSAuthentication.php (parseResponseBody): Do not suppress errors. * src/HAB/Pica/Auth/AbstractHttpAuthentication.php (sendRequest): Do not suppress errors. --- src/HAB/Pica/Auth/AbstractHttpAuthentication.php | 2 +- src/HAB/Pica/Auth/LBSAuthentication.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HAB/Pica/Auth/AbstractHttpAuthentication.php b/src/HAB/Pica/Auth/AbstractHttpAuthentication.php index 6c48840..e76a963 100644 --- a/src/HAB/Pica/Auth/AbstractHttpAuthentication.php +++ b/src/HAB/Pica/Auth/AbstractHttpAuthentication.php @@ -53,7 +53,7 @@ abstract class AbstractHttpAuthentication ) ); $ctx = stream_context_create($ctxOptions); - $response = @file_get_contents($url, false, $ctx); + $response = file_get_contents($url, false, $ctx); if ($response === false) { throw new RuntimeException("Error sending HTTP '{$method}' request to '{$url}'"); } diff --git a/src/HAB/Pica/Auth/LBSAuthentication.php b/src/HAB/Pica/Auth/LBSAuthentication.php index 236b027..d9b4f87 100644 --- a/src/HAB/Pica/Auth/LBSAuthentication.php +++ b/src/HAB/Pica/Auth/LBSAuthentication.php @@ -97,7 +97,7 @@ class LBSAuthentication extends AbstractHttpAuthentication implements Authentica */ private function parseResponseBody ($body) { - $response = @simplexml_load_string($body); + $response = simplexml_load_string($body); if ($response === false || $response->getName() !== 'AuthenticationResponse' || (string)$response->status !== 'OK') { return false; } -- GitLab