Skip to content

Commit

Permalink
Merge pull request #919 from lewiswilbynm/master
Browse files Browse the repository at this point in the history
Removing PHP 7.4 syntax.
  • Loading branch information
calcinai authored Jul 2, 2024
2 parents 7fbe9a0 + 9f26cff commit 7a6a6a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/XeroPHP/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/XeroPHP/Remote/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);
}

Expand Down

0 comments on commit 7a6a6a2

Please sign in to comment.