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) {