From d5207a43143f6c41520d024ba682cd5d69517416 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 27 Jun 2018 09:33:17 +0200 Subject: [PATCH] fix builds of relative paths --- src/pharext/SourceDir/Basic.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) { } -- 2.30.2