Skip to content

Commit 195359f

Browse files
Merge pull request #69 from Recras/main
PHP 8.4 compatibility
2 parents e370a94 + f18ad13 commit 195359f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Rates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Rates
3838
* @param int $refreshInterval How often to check for new VAT rates. Defaults to every 12 hours.
3939
* @param Client|null $client The VAT client to use.
4040
*/
41-
public function __construct(string $storagePath, int $refreshInterval = 12 * 3600, Client $client = null)
41+
public function __construct(string $storagePath, int $refreshInterval = 12 * 3600, ?Client $client = null)
4242
{
4343
$this->refreshInterval = $refreshInterval;
4444
$this->storagePath = $storagePath;

src/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Validator
5555
*
5656
* @param Vies\Client $client (optional)
5757
*/
58-
public function __construct(Vies\Client $client = null)
58+
public function __construct(?Vies\Client $client = null)
5959
{
6060
$this->client = $client ?: new Vies\Client();
6161
}

0 commit comments

Comments
 (0)