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; } + } }