1a9b7343 by fehrlich

fix exeption handling

1 parent 87517607
...@@ -536,7 +536,7 @@ abstract class ImmoScoutAPI extends GuzzleClient ...@@ -536,7 +536,7 @@ abstract class ImmoScoutAPI extends GuzzleClient
536 { 536 {
537 try { 537 try {
538 return json_decode((string) $res->getBody(), true); 538 return json_decode((string) $res->getBody(), true);
539 } catch (Exception $ex) { 539 } catch (\Exception $ex) {
540 throw new InvalidResponse('invalid json response'); 540 throw new InvalidResponse('invalid json response');
541 } 541 }
542 } 542 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!