Skip to content

Commit

Permalink
Removing PHP 7.4 syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewis Wilby committed Jul 2, 2024
1 parent 7fbe9a0 commit 9f26cff
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 9f26cff

Please sign in to comment.