Skip to content

Commit 674b245

Browse files
committed
Fix PHP 8.4 deprecations: implicit nullable
1 parent a0e3cce commit 674b245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ParsingInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getChar(): string
7373
/**
7474
* @phpstan-impure
7575
*/
76-
public function consume(int $length, string $expected = null): string
76+
public function consume(int $length, ?string $expected = null): string
7777
{
7878
assert($length > 0);
7979
assert($expected === null || strlen($expected) === $length);
@@ -93,7 +93,7 @@ public function consume(int $length, string $expected = null): string
9393
/**
9494
* @phpstan-impure
9595
*/
96-
public function consumeChar(string $value = null): string
96+
public function consumeChar(?string $value = null): string
9797
{
9898
assert($value === null || strlen($value) === 1);
9999

0 commit comments

Comments
 (0)