Fixed bug in copy from phar file method

This commit is contained in:
2018-09-03 22:24:44 +02:00
parent 1f06564778
commit d4f326e7ce

View File

@@ -130,7 +130,10 @@ class PharHelperService
*/
public function copy(string $source, string $target): bool
{
return copy($this->getPharUrl($source), $target);
if ($this->isInPhar() && substr($source, 0, 4) !== 'phar') {
$source = $this->getPharUrl($source);
}
return copy($source, $target);
}