diff --git a/src/Infakt/Repository/AbstractObjectRepository.php b/src/Infakt/Repository/AbstractObjectRepository.php
index <HASH>..<HASH> 100644
--- a/src/Infakt/Repository/AbstractObjectRepository.php
+++ b/src/Infakt/Repository/AbstractObjectRepository.php
@@ -57,7 +57,7 @@ abstract class AbstractObjectRepository implements ObjectRepositoryInterface
     {
         $response = $this->infakt->get($this->getServiceName().'/'.$entityId.'.json');
 
-        if (2 != substr((string)$response->getStatusCode(), 0, 1)) {
+        if (2 != substr((string) $response->getStatusCode(), 0, 1)) {
             return null;
         }
Cast to string before parsing HTTP response code