We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a7df4 commit 5cfc403Copy full SHA for 5cfc403
src/Number.php
@@ -46,7 +46,7 @@ class Number implements NumberInterface, Serializable
46
* @param int|null $checkDigit [Optional] The check digit for the number.
47
* @throws ArgumentIsNotNumericException If the number input does not consist entirely of numbers.
48
*/
49
- public function __construct(string $number, int $checkDigit = null)
+ public function __construct(string $number, ?int $checkDigit = null)
50
{
51
if (!string_is_numeric($number)) {
52
throw new ArgumentIsNotNumericException($number);
0 commit comments