1 Commits
0.1.0 ... 0.1.1

Author SHA1 Message Date
d4f326e7ce Fixed bug in copy from phar file method 2018-09-03 22:24:44 +02:00

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);
}