Skip to content

Commit

Permalink
Implicitly marking parameter as nullable is deprecated in PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugoku committed Dec 19, 2024
1 parent e370a94 commit f18ad13
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 f18ad13

Please sign in to comment.