src/UcrmHelper.php
@@ -50,6 +50,11 @@ return $this->config; } function getVersion() { $response = $this->getApi()->get('/version'); return $response['version']; } function getCurrentEvent() { if ($this->event === NULL) { try { @@ -74,7 +79,7 @@ throw new \RuntimeException('Failed to process event - event not found'); } if (!is_int($event['entityId'])) { if (!ctype_digit($event['entityId'])) { throw new \RuntimeException('Failed to process event - invalid entity ID'); }