File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Magento/FunctionalTestingFramework/Console Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,11 @@ private function validateInputArguments(InputInterface $input)
113
113
if (empty ($ requiredChecksNames )) {
114
114
$ this ->staticCheckObjects = $ this ->allStaticCheckObjects ;
115
115
} else {
116
- foreach ($ requiredChecksNames as $ checksName ) {
117
- if (in_array ($ checksName , $ this ->allStaticCheckObjects )) {
118
- $ this ->staticCheckObjects [$ checksName ] = $ this ->allStaticCheckObjects [$ checksName ];
119
- unset($ requiredChecksNames [$ checksName ]);
116
+ for ($ index = 0 ; $ index < count ($ requiredChecksNames ); $ index ++) {
117
+ if (in_array ($ requiredChecksNames [$ index ], array_keys ($ this ->allStaticCheckObjects ))) {
118
+ $ this ->staticCheckObjects [$ requiredChecksNames [$ index ]] =
119
+ $ this ->allStaticCheckObjects [$ requiredChecksNames [$ index ]];
120
+ unset($ requiredChecksNames [$ index ]);
120
121
}
121
122
}
122
123
}
You can’t perform that action at this time.
0 commit comments