Skip to content

Commit

Permalink
Merge pull request #5 from pavog/php-84
Browse files Browse the repository at this point in the history
PHP 8.4 compatability: Make parameter types explicitly nullable
  • Loading branch information
KurtThiemann authored Dec 21, 2024
2 parents 862406e + 399cb5c commit 602bc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tag/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public static function getTagClass(int $type): ?string
* @return Tag
* @throws Exception
*/
public static function load(Reader $reader, ?TagOptions $options = null, Tag $parent = null): Tag
public static function load(Reader $reader, ?TagOptions $options = null, ?Tag $parent = null): Tag
{
if($options === null) {
$options = new TagOptions();
Expand Down

0 comments on commit 602bc55

Please sign in to comment.