diff --git a/app/code/Magento/Backend/Model/Search/Customer.php b/app/code/Magento/Backend/Model/Search/Customer.php index f326d0b2fc0a6..7b16b1c894467 100644 --- a/app/code/Magento/Backend/Model/Search/Customer.php +++ b/app/code/Magento/Backend/Model/Search/Customer.php @@ -96,7 +96,7 @@ public function load() ->setValue($this->getQuery() . '%') ->create(); } - $this->searchCriteriaBuilder->addFilter($filters); + $this->searchCriteriaBuilder->addFilters($filters); $searchCriteria = $this->searchCriteriaBuilder->create(); $searchResults = $this->customerRepository->getList($searchCriteria); diff --git a/app/code/Magento/Catalog/Api/Data/CategoryAttributeSearchResultsInterface.php b/app/code/Magento/Catalog/Api/Data/CategoryAttributeSearchResultsInterface.php index 9decc3aaab231..396e779c7a22e 100644 --- a/app/code/Magento/Catalog/Api/Data/CategoryAttributeSearchResultsInterface.php +++ b/app/code/Magento/Catalog/Api/Data/CategoryAttributeSearchResultsInterface.php @@ -24,5 +24,5 @@ public function getItems(); * @param \Magento\Catalog\Api\Data\CategoryAttributeInterface[] $items * @return $this */ - public function setItems(array $items = null); + public function setItems(array $items); } diff --git a/app/code/Magento/Catalog/Api/Data/ProductAttributeSearchResultsInterface.php b/app/code/Magento/Catalog/Api/Data/ProductAttributeSearchResultsInterface.php index 1d8ed8d78c7ac..efb35c89a3751 100644 --- a/app/code/Magento/Catalog/Api/Data/ProductAttributeSearchResultsInterface.php +++ b/app/code/Magento/Catalog/Api/Data/ProductAttributeSearchResultsInterface.php @@ -24,5 +24,5 @@ public function getItems(); * @param \Magento\Catalog\Api\Data\ProductAttributeInterface[] $items * @return $this */ - public function setItems(array $items = null); + public function setItems(array $items); } diff --git a/app/code/Magento/Catalog/Api/Data/ProductSearchResultsInterface.php b/app/code/Magento/Catalog/Api/Data/ProductSearchResultsInterface.php index 67c3b5ddef820..888a795f73a5b 100644 --- a/app/code/Magento/Catalog/Api/Data/ProductSearchResultsInterface.php +++ b/app/code/Magento/Catalog/Api/Data/ProductSearchResultsInterface.php @@ -24,5 +24,5 @@ public function getItems(); * @param \Magento\Catalog\Api\Data\ProductInterface[] $items * @return $this */ - public function setItems(array $items = null); + public function setItems(array $items); } diff --git a/app/code/Magento/Catalog/Model/Category/AttributeRepository.php b/app/code/Magento/Catalog/Model/Category/AttributeRepository.php index 38ee0f02fccdd..8b9c1f4702a3d 100644 --- a/app/code/Magento/Catalog/Model/Category/AttributeRepository.php +++ b/app/code/Magento/Catalog/Model/Category/AttributeRepository.php @@ -73,7 +73,7 @@ public function getCustomAttributesMetadata($dataObjectClassName = null) $defaultAttributeSetId = $this->eavConfig ->getEntityType(\Magento\Catalog\Api\Data\CategoryAttributeInterface::ENTITY_TYPE_CODE) ->getDefaultAttributeSetId(); - $searchCriteria = $this->searchCriteriaBuilder->addFilter( + $searchCriteria = $this->searchCriteriaBuilder->addFilters( [ $this->filterBuilder ->setField('attribute_set_id') diff --git a/app/code/Magento/Catalog/Model/Product/Attribute/Repository.php b/app/code/Magento/Catalog/Model/Product/Attribute/Repository.php index 49fdcf4a8a892..07096562de955 100644 --- a/app/code/Magento/Catalog/Model/Product/Attribute/Repository.php +++ b/app/code/Magento/Catalog/Model/Product/Attribute/Repository.php @@ -212,7 +212,7 @@ public function getCustomAttributesMetadata($dataObjectClassName = null) $defaultAttributeSetId = $this->eavConfig ->getEntityType(\Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE) ->getDefaultAttributeSetId(); - $searchCriteria = $this->searchCriteriaBuilder->addFilter( + $searchCriteria = $this->searchCriteriaBuilder->addFilters( [ $this->filterBuilder ->setField('attribute_set_id') diff --git a/app/code/Magento/Catalog/Model/Product/Attribute/SetRepository.php b/app/code/Magento/Catalog/Model/Product/Attribute/SetRepository.php index 1ff9a50bea62c..b47a9351889c8 100644 --- a/app/code/Magento/Catalog/Model/Product/Attribute/SetRepository.php +++ b/app/code/Magento/Catalog/Model/Product/Attribute/SetRepository.php @@ -62,7 +62,7 @@ public function save(\Magento\Eav\Api\Data\AttributeSetInterface $attributeSet) */ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria) { - $this->searchCriteriaBuilder->addFilter( + $this->searchCriteriaBuilder->addFilters( [ $this->filterBuilder ->setField('entity_type_code') diff --git a/app/code/Magento/Catalog/Model/ProductRepository.php b/app/code/Magento/Catalog/Model/ProductRepository.php index 33ef608575c92..cf617c076ab80 100644 --- a/app/code/Magento/Catalog/Model/ProductRepository.php +++ b/app/code/Magento/Catalog/Model/ProductRepository.php @@ -652,7 +652,7 @@ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCr $defaultAttributeSetId = $this->eavConfig ->getEntityType(\Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE) ->getDefaultAttributeSetId(); - $extendedSearchCriteria = $this->searchCriteriaBuilder->addFilter( + $extendedSearchCriteria = $this->searchCriteriaBuilder->addFilters( [ $this->filterBuilder ->setField('attribute_set_id') diff --git a/app/code/Magento/Catalog/Test/Unit/Model/Category/AttributeRepositoryTest.php b/app/code/Magento/Catalog/Test/Unit/Model/Category/AttributeRepositoryTest.php index c2c63a0ed168c..3626042fac91c 100644 --- a/app/code/Magento/Catalog/Test/Unit/Model/Category/AttributeRepositoryTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Model/Category/AttributeRepositoryTest.php @@ -114,7 +114,7 @@ public function testGetCustomAttributesMetadata() 3 )->willReturnSelf(); $this->filterBuilderMock->expects($this->once())->method('create')->willReturn($filterMock); - $this->searchBuilderMock->expects($this->once())->method('addFilter')->with([$filterMock])->willReturnSelf(); + $this->searchBuilderMock->expects($this->once())->method('addFilters')->with([$filterMock])->willReturnSelf(); $searchCriteriaMock = $this->getMock('Magento\Framework\Api\SearchCriteria', [], [], '', false); $this->searchBuilderMock->expects($this->once())->method('create')->willReturn($searchCriteriaMock); $itemMock = $this->getMock('Magento\Framework\Object', [], [], '', false); diff --git a/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/RepositoryTest.php b/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/RepositoryTest.php index 5bdbcde5c5ee4..ae38586c74cef 100644 --- a/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/RepositoryTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/RepositoryTest.php @@ -180,7 +180,7 @@ public function testGetCustomAttributesMetadata() ->willReturnSelf(); $this->filterBuilderMock->expects($this->once())->method('create')->willReturn($filterMock); $this->searchCriteriaBuilderMock->expects($this->once()) - ->method('addFilter') + ->method('addFilters') ->with([$filterMock]) ->willReturnSelf(); $searchCriteriaMock = $this->getMock('Magento\Framework\Api\SearchCriteria', [], [], '', false); diff --git a/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/SetRepositoryTest.php b/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/SetRepositoryTest.php index 70ba8feab8dac..65ce4d9a084c7 100644 --- a/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/SetRepositoryTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Model/Product/Attribute/SetRepositoryTest.php @@ -181,7 +181,7 @@ public function testGetList() $this->filterBuilderMock->expects($this->once())->method('create')->willReturn($filterMock); $this->searchCriteriaBuilderMock->expects($this->once()) - ->method('addFilter') + ->method('addFilters') ->with([$filterMock]) ->willReturnSelf(); $this->searchCriteriaBuilderMock->expects($this->once()) diff --git a/app/code/Magento/Catalog/Test/Unit/Model/ProductRepositoryTest.php b/app/code/Magento/Catalog/Test/Unit/Model/ProductRepositoryTest.php index 1cbc3749362b2..a84bf2e1b532f 100644 --- a/app/code/Magento/Catalog/Test/Unit/Model/ProductRepositoryTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Model/ProductRepositoryTest.php @@ -573,7 +573,7 @@ public function testGetList() $this->filterBuilderMock->expects($this->once())->method('setValue') ->with(4) ->willReturn($this->filterBuilderMock); - $this->searchCriteriaBuilderMock->expects($this->once())->method('addFilter')->with([$filterMock]) + $this->searchCriteriaBuilderMock->expects($this->once())->method('addFilters')->with([$filterMock]) ->willReturn($searchCriteriaBuilderMock); $searchCriteriaBuilderMock->expects($this->once())->method('create')->willReturn($extendedSearchCriteriaMock); $this->metadataServiceMock->expects($this->once())->method('getList')->with($extendedSearchCriteriaMock) diff --git a/app/code/Magento/Catalog/view/frontend/layout/catalog_category_view.xml b/app/code/Magento/Catalog/view/frontend/layout/catalog_category_view.xml index dbc1ff5933f3b..0deca46153b69 100644 --- a/app/code/Magento/Catalog/view/frontend/layout/catalog_category_view.xml +++ b/app/code/Magento/Catalog/view/frontend/layout/catalog_category_view.xml @@ -21,7 +21,7 @@ - +