File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function getAvailableOptions()
6767 /** @var AbstractConfigOption[] $optionCollection */
6868 $ optionCollection = [];
6969 $ optionLists = $ this ->collector ->collectOptionsLists ();
70-
70+ $ errors = [];
7171 foreach ($ optionLists as $ optionList ) {
7272 $ optionCollection [] = $ optionList ->getOptions ();
7373 }
@@ -77,7 +77,11 @@ public function getAvailableOptions()
7777 foreach ($ optionCollection as $ option ) {
7878 $ currentValue = $ this ->deploymentConfig ->get ($ option ->getConfigPath ());
7979 if ($ currentValue !== null && $ option ->acceptValue ()) {
80- $ option ->setDefault ($ currentValue );
80+ try {
81+ $ option ->setDefault ($ currentValue );
82+ } catch (\Throwable $ e ) {
83+ $ errors [] = [$ e ->getMessage ()];
84+ }
8185 }
8286 }
8387
You can’t perform that action at this time.
0 commit comments