File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/ConfigurableProductGraphQl/Model/Variant Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class Collection
48
48
*/
49
49
private $ stockHelper ;
50
50
51
- /**
51
+ /**
52
52
* @var StockConfigurationInterface
53
53
*/
54
54
protected $ stockConfig ;
@@ -79,6 +79,8 @@ class Collection
79
79
* @param SearchCriteriaBuilder $searchCriteriaBuilder
80
80
* @param DataProvider $productDataProvider
81
81
* @param MetadataPool $metadataPool
82
+ * @param Stock $stockHelper
83
+ * @param StockConfigurationInterface $stockConfig
82
84
*/
83
85
public function __construct (
84
86
CollectionFactory $ childCollectionFactory ,
@@ -168,7 +170,7 @@ private function fetch() : array
168
170
$ childCollection ->setProductFilter ($ product );
169
171
$ childCollection ->addAttributeToSelect ($ attributeData );
170
172
171
- if (!$ showOutOfStock ) {
173
+ if (!$ showOutOfStock ) {
172
174
$ this ->stockHelper ->addInStockFilterToCollection ($ childCollection );
173
175
}
174
176
You can’t perform that action at this time.
0 commit comments