Skip to content

Commit fc488e8

Browse files
author
Oleksii Korshenko
committed
MAGETWO-64777: [GitHub] [PR] Replace ext name spaces with dashes (as composer does when storing) #8513
- Merge Pull Request #8513 from AydinHassan/magento2:replace-ext-space-with-dash
2 parents 55c58a6 + fa59ef9 commit fc488e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public function getRequiredMinimumXDebugNestedLevel()
4545
public function getCurrent()
4646
{
4747
if (!$this->current) {
48-
$this->current = array_map('strtolower', get_loaded_extensions());
48+
$this->current = array_map(function ($ext) {
49+
return str_replace(' ', '-', strtolower($ext));
50+
}, get_loaded_extensions());
4951
}
5052
return $this->current;
5153
}

0 commit comments

Comments
 (0)