Skip to content

Commit 602bc55

Browse files
authored
Merge pull request #5 from pavog/php-84
PHP 8.4 compatability: Make parameter types explicitly nullable
2 parents 862406e + 399cb5c commit 602bc55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tag/Tag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public static function getTagClass(int $type): ?string
292292
* @return Tag
293293
* @throws Exception
294294
*/
295-
public static function load(Reader $reader, ?TagOptions $options = null, Tag $parent = null): Tag
295+
public static function load(Reader $reader, ?TagOptions $options = null, ?Tag $parent = null): Tag
296296
{
297297
if($options === null) {
298298
$options = new TagOptions();

0 commit comments

Comments
 (0)