From 9ff392e85aa19b0158a817906b0b9aed4aeff6ab Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 8 Oct 2020 15:12:24 +0200 Subject: [PATCH] fix tests and replace file_exists --- Models/InterfaceManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/InterfaceManager.php b/Models/InterfaceManager.php index 13f88c1..0e695cd 100755 --- a/Models/InterfaceManager.php +++ b/Models/InterfaceManager.php @@ -148,7 +148,7 @@ class InterfaceManager */ public function load() : void { - if (!\file_exists($this->path)) { + if (!\is_file($this->path)) { throw new PathException($this->path); } @@ -167,7 +167,7 @@ class InterfaceManager */ public function update() : void { - if (!\file_exists($this->path)) { + if (!\is_file($this->path)) { throw new PathException($this->path); }