`EntityCollection` помечен для переделки

pull/15/head
Anthony Axenov 2021-12-08 15:50:06 +08:00
parent b39e76f312
commit b57acf8b05
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ abstract class EntityCollection extends Collection
public function __construct($items = [])
{
$this->checkCount($items);
//TODO следует переделать EntityCollection в обёртку над Collection,
// ибо ломает методы Collection, которые return new static
$this->checkItemsClasses($items);
parent::__construct($items);
}