Skip to content

Commit

Permalink
Merge pull request #69 from Recras/main
Browse files Browse the repository at this point in the history
PHP 8.4 compatibility
  • Loading branch information
dannyvankooten authored Dec 19, 2024
2 parents e370a94 + f18ad13 commit 195359f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rates.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Rates
* @param int $refreshInterval How often to check for new VAT rates. Defaults to every 12 hours.
* @param Client|null $client The VAT client to use.
*/
public function __construct(string $storagePath, int $refreshInterval = 12 * 3600, Client $client = null)
public function __construct(string $storagePath, int $refreshInterval = 12 * 3600, ?Client $client = null)
{
$this->refreshInterval = $refreshInterval;
$this->storagePath = $storagePath;
Expand Down
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Validator
*
* @param Vies\Client $client (optional)
*/
public function __construct(Vies\Client $client = null)
public function __construct(?Vies\Client $client = null)
{
$this->client = $client ?: new Vies\Client();
}
Expand Down

0 comments on commit 195359f

Please sign in to comment.