Skip to content

Commit

Permalink
Merge pull request #14 from falconeri/php8
Browse files Browse the repository at this point in the history
🐛 bug fixes for php 8
  • Loading branch information
si3nloong authored Jul 11, 2021
2 parents b7cffa3 + 112736e commit c9fd645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Modules/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(RevenueMonster $rm)
$this->rm = $rm;
}

public function getOpenApiUrl(string $version = '1.0', string $url, string $usage = 'api')
public function getOpenApiUrl(string $version = '1.0', string $url = '', string $usage = 'api')
{
return $this->rm->getOpenApiUrl($version, $url, $usage);
}
Expand Down
2 changes: 1 addition & 1 deletion src/RevenueMonster.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function getDomain(string $usage)
return $domain;
}

public function getOpenApiUrl(string $version = 'v1', string $url, string $usage = 'api')
public function getOpenApiUrl(string $version = 'v1', string $url = '', string $usage = 'api')
{
$url = trim($url, '/');
$uri = "{$this->getDomain($usage)}/$version/$url";
Expand Down

0 comments on commit c9fd645

Please sign in to comment.