fix(shared): remove optional-before-required constructor parameter
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user