From 1648e9f178d093818255090a0d65f523a5bf55b6 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Mon, 14 Mar 2016 12:25:32 +0300 Subject: [PATCH] Update RequestProxy.php --- retailcrm/src/Components/RequestProxy.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/retailcrm/src/Components/RequestProxy.php b/retailcrm/src/Components/RequestProxy.php index 4e68083..fd61c63 100644 --- a/retailcrm/src/Components/RequestProxy.php +++ b/retailcrm/src/Components/RequestProxy.php @@ -46,11 +46,23 @@ class RequestProxy "[$method] " . $e->getMessage() . "\n", $this->container->errorLog ); + + return null; } catch (InvalidJsonException $e) { $this->logger->write( "[$method] " . $e->getMessage() . "\n", $this->container->errorLog ); + + return null; + } catch (InvalidArgumentException $e) { + $this->logger->write( + "[$method] " . $e->getMessage() . "\n", + $this->container->errorLog + ); + + return null; } + } }