Skip to content

Commit 399cb5c

Browse files
committed
add a ? to implicitly nullable parameter types to make them explicitly nullable
1 parent 862406e commit 399cb5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)