diff --git a/src/HAB/Pica/Auth/AbstractHttpAuthentication.php b/src/HAB/Pica/Auth/AbstractHttpAuthentication.php index 6c48840f3371180e5b97ac7ce03f238f60e8c011..e76a96357a03c64b68f0d6c7958305413a8232b4 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 236b0276a413f4b4b4bd51dc9b7ba1ea8ec06fe3..d9b4f872bd2876e37fcb673ea34f04d7d3aac677 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; }