diff --git a/src/Collection/ArrayList.php b/src/Collection/ArrayList.php index 34df681..0039cfe 100644 --- a/src/Collection/ArrayList.php +++ b/src/Collection/ArrayList.php @@ -75,9 +75,9 @@ public function set(mixed $key, mixed $element): void if (! $this->isValidArrayKey($key)) { throw new \InvalidArgumentException('Invalid key type: ' . gettype($key)); } - if (! $this->hasKey($key)) { - throw new \OutOfRangeException('Key not found: ' . $this->keyToString($key)); - } + // if (! $this->hasKey($key)) { + // throw new \OutOfRangeException('Key not found: ' . $this->keyToString($key)); + // } $this->elements[$key] = $element; }