Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
],
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
"composer/composer": "^1.9 || ^2.0"
"composer/composer": "^1.9 || ^2.0",
"laminas/laminas-stdlib": "^3.11.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand Down Expand Up @@ -70,4 +71,4 @@
],
"class": "MagentoHackathon\\Composer\\Magento\\Plugin"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace MagentoHackathon\Composer\Magento\Deploystrategy;

use Laminas\Stdlib\Glob;

/**
* Abstract deploy strategy
*/
Expand Down Expand Up @@ -342,7 +344,7 @@ public function remove($source, $dest)
protected function removeContentOfCategory($sourcePath, $destPath)
{
$sourcePath = preg_replace('#/\*$#', '/{,.}*', $sourcePath);
$matches = glob($sourcePath, GLOB_BRACE);
$matches = Glob::glob($sourcePath, Glob::GLOB_BRACE);
if ($matches) {
foreach ($matches as $match) {
if (preg_match("#/\.{1,2}$#", $match)) {
Expand Down