From 7d0de8c4a1cdd188be96ceeeb66075600aa60e74 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 28 Oct 2023 18:27:59 +0200 Subject: [PATCH] Add string cast to last branch --- .../framework/src/Framework/Features/Metadata/MetadataBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Framework/Features/Metadata/MetadataBag.php b/packages/framework/src/Framework/Features/Metadata/MetadataBag.php index f0df78363e8..3248a4c0a9e 100644 --- a/packages/framework/src/Framework/Features/Metadata/MetadataBag.php +++ b/packages/framework/src/Framework/Features/Metadata/MetadataBag.php @@ -66,7 +66,7 @@ public function add(MetadataElementContract|string $element): static return $this->addElement('properties', $element); } - return $this->addGenericElement($element); + return $this->addGenericElement((string) $element); } protected function addElement(string $type, MetadataElementContract $element): static