We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d08fc commit 023c25dCopy full SHA for 023c25d
dev/tests/api-functional/testsuite/Magento/CatalogInventory/Api/ProductRepositoryInterfaceTest.php
@@ -185,9 +185,15 @@ protected function findCustomAttributeQty($customAttributes)
185
break;
186
}
187
188
- if (!empty($qtyAndStockStatus)) {
+ if (!empty($qtyAndStockStatus) && is_array($qtyAndStockStatus)) {
189
+
190
+ if (array_key_exists('any_type', $qtyAndStockStatus)) {
191
+ // for SOAP, need to use the inner array
192
+ $qtyAndStockStatus = $qtyAndStockStatus['any_type'];
193
+ }
194
195
// ex: [true, 1234]
- if (is_bool($qtyAndStockStatus[0])) {
196
+ if (is_bool($qtyAndStockStatus[0]) || is_string($qtyAndStockStatus[0])) {
197
$qty = $qtyAndStockStatus[1];
198
} else {
199
$qty = $qtyAndStockStatus[0];
0 commit comments