From eb3b67d05f98abc0a791b4a839e31808a3797a5a Mon Sep 17 00:00:00 2001 From: Dominik Hofmann Date: Tue, 30 Aug 2022 09:44:48 +0200 Subject: [PATCH 1/2] Fix filetree (multiple) error in Contao 5 --- src/CustomElements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CustomElements.php b/src/CustomElements.php index d132cbf..a6b8aa4 100644 --- a/src/CustomElements.php +++ b/src/CustomElements.php @@ -1942,7 +1942,7 @@ private function uuidBinToText($value) if (strlen($value) === 16) { return StringUtil::binToUuid($value); } - return serialize(array_map('StringUtil::binToUuid', StringUtil::deserialize($value))); + return serialize(array_map('\Contao\StringUtil::binToUuid', StringUtil::deserialize($value))); } return ''; } From 9d41209f86d4c1308e158eef533e6b8f085a08d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ausw=C3=B6ger?= Date: Thu, 8 Sep 2022 10:30:24 +0200 Subject: [PATCH 2/2] Use FQCN --- src/CustomElements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CustomElements.php b/src/CustomElements.php index a6b8aa4..75a445e 100644 --- a/src/CustomElements.php +++ b/src/CustomElements.php @@ -1942,7 +1942,7 @@ private function uuidBinToText($value) if (strlen($value) === 16) { return StringUtil::binToUuid($value); } - return serialize(array_map('\Contao\StringUtil::binToUuid', StringUtil::deserialize($value))); + return serialize(array_map('Contao\StringUtil::binToUuid', StringUtil::deserialize($value))); } return ''; }