mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fix cloning issues with ObjectCollection
This commit is contained in:
parent
673131926a
commit
512aae350e
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user