diff --git a/src/Magento/FunctionalTestingFramework/Exceptions/Collector/ExceptionCollector.php b/src/Magento/FunctionalTestingFramework/Exceptions/Collector/ExceptionCollector.php index 4b67add0b..c1e023ef4 100644 --- a/src/Magento/FunctionalTestingFramework/Exceptions/Collector/ExceptionCollector.php +++ b/src/Magento/FunctionalTestingFramework/Exceptions/Collector/ExceptionCollector.php @@ -53,7 +53,7 @@ public function throwException() private function formatErrors($errors) { $flattenedErrors = []; - foreach ($errors as $key => $errorMsg) { + foreach ($errors as $errorMsg) { if (is_array($errorMsg)) { $flattenedErrors = array_merge($flattenedErrors, $this->formatErrors($errorMsg)); continue;