Skip to content

Commit f8d88df

Browse files
oshmyheliukshiftedreality
authored andcommitted
MAGECLOUD-3228: Installation from git is broken with 2.3.1-develop due to ElasticSerch 6.5 (#427)
1 parent 748ec74 commit f8d88df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Dev/UpdateComposer/ClearModuleRequirements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function generate(array $repos)
6262
\$composerJson = json_decode(file_get_contents(\$moduleDir . '/composer.json'), true);
6363
6464
foreach (\$composerJson['require'] as \$requireName => \$requireVersion) {
65-
if (strpos(\$requireName, 'magento/') !== false) {
65+
if (preg_match('{^(magento\/|elasticsearch\/)}i', \$requireName)) {
6666
unset(\$composerJson['require'][\$requireName]);
6767
}
6868
}

0 commit comments

Comments
 (0)