From 9f26cff58349b7e55889044ddebe501a79c98e18 Mon Sep 17 00:00:00 2001 From: Lewis Wilby Date: Tue, 2 Jul 2024 09:53:00 +0100 Subject: [PATCH] Removing PHP 7.4 syntax. --- src/XeroPHP/Application.php | 8 ++++---- src/XeroPHP/Remote/Request.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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] ); }