Fixed bug in copy from phar file method
This commit is contained in:
1 parent
1f06564778
commit
d4f326e7ce
1 file changed
+4
-1
@@ -130,7 +130,10 @@ class PharHelperService
|
|||||||
*/
|
*/
|
||||||
public function copy(string $source, string $target): bool
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user