Skip to content

Commit 17f3a19

Browse files
authored
Merge pull request #63 from uintaam/3.x
TypeError thrown if is null
2 parents 02f9781 + 19852db commit 17f3a19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MetaTags/Entities/Tag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ protected function attributeElement(mixed $key, mixed $value): mixed
8282
if (!is_null($value)) {
8383
return $key . '="' . $value . '"';
8484
}
85+
86+
return null;
8587
}
8688

8789
/**

0 commit comments

Comments
 (0)