Skip to content

Commit 5cfc403

Browse files
Horat1ushorat1usEkman
authored
Fix PHP 8.4 deprecation warning "Implicitly marking parameter $checkDigit as nullable is deprecated" in Number (#44)
Co-authored-by: horat1us <git-public@alias.horatius.dev> Co-authored-by: Niklas Ekman <nikl.ekman@gmail.com>
1 parent 84a7df4 commit 5cfc403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Number implements NumberInterface, Serializable
4646
* @param int|null $checkDigit [Optional] The check digit for the number.
4747
* @throws ArgumentIsNotNumericException If the number input does not consist entirely of numbers.
4848
*/
49-
public function __construct(string $number, int $checkDigit = null)
49+
public function __construct(string $number, ?int $checkDigit = null)
5050
{
5151
if (!string_is_numeric($number)) {
5252
throw new ArgumentIsNotNumericException($number);

0 commit comments

Comments
 (0)