1
0
Fork 0
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:
M N Islam Shihan 2013-01-16 00:29:02 +06:00
parent 8ebf4455f0
commit 41e91f3064

View file

@ -294,6 +294,10 @@ EOF;
$baseDir = '$vendorDir . ';
}
if(preg_match('/\.phar$/', $path)){
$baseDir = '"phar://" . ' . $baseDir;
}
return $baseDir.var_export($path, true);
}