From 19852db1190f27161a0cf82d65cf54b347f287e3 Mon Sep 17 00:00:00 2001 From: Andrew Winter Date: Tue, 2 Apr 2024 14:29:55 +0900 Subject: [PATCH] TypeError thrown if is null --- src/MetaTags/Entities/Tag.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MetaTags/Entities/Tag.php b/src/MetaTags/Entities/Tag.php index 24d60aa..550978d 100644 --- a/src/MetaTags/Entities/Tag.php +++ b/src/MetaTags/Entities/Tag.php @@ -82,6 +82,8 @@ protected function attributeElement(mixed $key, mixed $value): mixed if (!is_null($value)) { return $key . '="' . $value . '"'; } + + return null; } /**