From 27b973f3db6ab434eb30ba4fd6552314b807d9e2 Mon Sep 17 00:00:00 2001 From: Sebastian Krupinski Date: Fri, 17 Jul 2026 15:51:09 -0400 Subject: [PATCH] fix(shared): remove optional-before-required constructor parameter Signed-off-by: Sebastian Krupinski --- shared/lib/Utile/Collection/CollectionAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/lib/Utile/Collection/CollectionAbstract.php b/shared/lib/Utile/Collection/CollectionAbstract.php index 6bd5529..efab481 100644 --- a/shared/lib/Utile/Collection/CollectionAbstract.php +++ b/shared/lib/Utile/Collection/CollectionAbstract.php @@ -26,7 +26,7 @@ class CollectionAbstract extends \ArrayObject { * @param class-string|string|null $typeValue * @param class-string|string|null $typeKey */ - public function __construct(array $data = [], string $typeValue, string|null $typeKey = null) { + public function __construct(array $data = [], string $typeValue = 'string', string|null $typeKey = null) { // Ensure that all data entries are of the specified type $this->typeValue = $typeValue; if ($typeKey !== null) {