Skip to content

Commit 9e789ca

Browse files
author
Matthew O'Loughlin
committed
Fix return type to match function spec (empty array instead of null)
1 parent c61a2c6 commit 9e789ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/BundleGraphQl/Model/Resolver/Options/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private function fetch() : array
115115

116116
$this->extensionAttributesJoinProcessor->process($optionsCollection);
117117
if (empty($optionsCollection->getData())) {
118-
return null;
118+
return [];
119119
}
120120

121121
/** @var \Magento\Bundle\Model\Option $option */

0 commit comments

Comments
 (0)