Skip to content

Commit ac31dfd

Browse files
committed
AC-15329::added catch error block to fix static warning
1 parent 1f24dbf commit ac31dfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup/src/Magento/Setup/Model/ConfigModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@ public function getAvailableOptions()
7272
}
7373

7474
$optionCollection = array_merge([], ...$optionCollection);
75-
75+
$errors = [];
7676
foreach ($optionCollection as $option) {
7777
$currentValue = $this->deploymentConfig->get($option->getConfigPath());
7878
if ($currentValue !== null && $option->acceptValue()) {
7979
try {
8080
$option->setDefault($currentValue);
8181
} catch (\Throwable $e) {
82+
$errors[] = [$e->getMessage()];
8283
}
8384
}
8485
}

0 commit comments

Comments
 (0)