mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 19:41:36 +01:00
Fix cloning issues with ObjectCollection
This commit is contained in:
@@ -32,10 +32,6 @@ class ObjectCollection extends ArrayCollection implements ObjectCollectionInterf
|
||||
parent::__construct($elements);
|
||||
|
||||
$this->key = $key !== null ? $key : $this->getKey();
|
||||
|
||||
if ($this->key === null) {
|
||||
throw new \InvalidArgumentException('Object cannot be created without assigning a key');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user