Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.4 compatibility #69

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading