fix(shared): remove optional-before-required constructor parameter

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-07-17 15:51:09 -04:00
parent 28bc360106
commit 27b973f3db
@@ -26,7 +26,7 @@ class CollectionAbstract extends \ArrayObject {
* @param class-string<T>|string|null $typeValue
* @param class-string<TKey>|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) {