mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Fixed an issue when a phar file is used in "files" option in composer.json
This commit is contained in:
parent
8ebf4455f0
commit
41e91f3064
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ EOF;
|
|||
$baseDir = '$vendorDir . ';
|
||||
}
|
||||
|
||||
if(preg_match('/\.phar$/', $path)){
|
||||
$baseDir = '"phar://" . ' . $baseDir;
|
||||
}
|
||||
|
||||
return $baseDir.var_export($path, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue