Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Apr 17, 2019
1 parent 71effbe commit eea6126
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1719,5 +1719,4 @@ public function removeAllFieldsFromSelect()
{
return $this->removeAttributeToSelect();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Customer\Block\Adminhtml\Edit\Tab\View;

use Magento\Customer\Controller\RegistryConstants;
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/Magento/Framework/Data/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Framework\Data;

use Magento\Framework\Data\Collection\EntityFactoryInterface;
Expand Down Expand Up @@ -401,6 +402,7 @@ public function addItem(\Magento\Framework\DataObject $item)

if ($itemId !== null) {
if (isset($this->_items[$itemId])) {
//phpcs:ignore Magento2.Exceptions.DirectThrow
throw new \Exception(
'Item (' . get_class($item) . ') with the same ID "' . $item->getId() . '" already exists.'
);
Expand Down

0 comments on commit eea6126

Please sign in to comment.