Skip to content

Commit

Permalink
Fix cloning issues with ObjectCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed May 31, 2017
1 parent 6731319 commit 512aae3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions system/src/Grav/Framework/Object/ObjectCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ public function __construct(array $elements = [], $key = null)
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');
}
}

/**
Expand Down

0 comments on commit 512aae3

Please sign in to comment.