From 1de4cd302b5cd0c7fa895ab30840c92ba92fa3a0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 8 Oct 2017 19:10:54 +0200 Subject: [PATCH] Fix path bugs --- Module/InfoManager.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Module/InfoManager.php b/Module/InfoManager.php index 708e2de04..70c5bcda8 100644 --- a/Module/InfoManager.php +++ b/Module/InfoManager.php @@ -55,9 +55,9 @@ class InfoManager * * @since 1.0.0 */ - public function __construct($path) + public function __construct(string $path) { - $this->path = realpath($path); + $this->path = $path; } /** @@ -83,8 +83,8 @@ class InfoManager */ public function load() /* : void */ { - if ($this->path === false || !file_exists($this->path)) { - throw new PathException((string) $this->path); + if (!file_exists($this->path)) { + throw new PathException($this->path); } $this->info = json_decode(file_get_contents($this->path), true); @@ -99,7 +99,7 @@ class InfoManager */ public function update() /* : void */ { - if ($this->path === false || !file_exists($this->path)) { + if (!file_exists($this->path)) { throw new PathException((string) $this->path); }