From: Michael Wallner Date: Wed, 27 Jun 2018 07:33:17 +0000 (+0200) Subject: fix builds of relative paths X-Git-Tag: v4.1.2~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d5207a43143f6c41520d024ba682cd5d69517416;p=pharext%2Fpharext fix builds of relative paths --- diff --git a/src/pharext/SourceDir/Basic.php b/src/pharext/SourceDir/Basic.php index 13891d0..e5b2d23 100644 --- a/src/pharext/SourceDir/Basic.php +++ b/src/pharext/SourceDir/Basic.php @@ -18,13 +18,13 @@ class Basic implements IteratorAggregate, SourceDir { use License; use PackageInfo; - + private $path; - + public function __construct($path) { - $this->path = $path; + $this->path = realpath($path); } - + public function getBaseDir() { return $this->path; } @@ -36,7 +36,7 @@ class Basic implements IteratorAggregate, SourceDir public function getPackageInfo() { return $this->findPackageInfo($this->getBaseDir()); } - + public function getLicense() { if (($file = $this->findLicense($this->getBaseDir()))) { return $this->readLicense($file); @@ -47,7 +47,7 @@ class Basic implements IteratorAggregate, SourceDir public function getArgs() { return []; } - + public function setArgs(Args $args) { }