diff --git a/src/XeroPHP/Application.php b/src/XeroPHP/Application.php index 7c33f3a3..f7b077d9 100644 --- a/src/XeroPHP/Application.php +++ b/src/XeroPHP/Application.php @@ -29,10 +29,10 @@ class Application */ protected $config; - private ?int $lastApiCall = null; - private ?int $appMinLimitRemining = null; - private ?int $tenantDayLimitRemining = null; - private ?int $tenantMinLimitRemining = null; + private $lastApiCall = null; + private $appMinLimitRemining = null; + private $tenantDayLimitRemining = null; + private $tenantMinLimitRemining = null; /** * @var ClientInterface diff --git a/src/XeroPHP/Remote/Request.php b/src/XeroPHP/Remote/Request.php index 33382cc6..7dc3d46b 100644 --- a/src/XeroPHP/Remote/Request.php +++ b/src/XeroPHP/Remote/Request.php @@ -122,7 +122,7 @@ public function send() if($guzzleResponse->hasHeader('X-DayLimit-Remaining')){ $this->app->updateTenantRateLimits( $guzzleResponse->getHeader('X-DayLimit-Remaining')[0], - $guzzleResponse->getHeader('X-MinLimit-Remaining')[0], + $guzzleResponse->getHeader('X-MinLimit-Remaining')[0] ); }