From 9c97d5c0db738fb2e6e023e394399008bb04a89e Mon Sep 17 00:00:00 2001 From: openlegends Date: Fri, 15 Mar 2024 00:13:06 +0200 Subject: [PATCH] fix exception namespace --- src/Config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Config.php b/src/Config.php index 950691e..81b85e1 100644 --- a/src/Config.php +++ b/src/Config.php @@ -15,7 +15,7 @@ class Config else { - throw new Exception(); + throw new \Exception(); } } @@ -100,7 +100,7 @@ class Config if (!is_dir($location) || !is_readable($location)) { - throw new Exception(); + throw new \Exception(); } foreach (scandir($location) as $filename) @@ -124,17 +124,17 @@ class Config { if (!is_file($location) || !is_readable($location)) { - throw new Exception(); + throw new \Exception(); } if (!$json = file_get_contents($location)) { - throw new Exception(); + throw new \Exception(); } if (!$config = json_decode($json)) { - throw new Exception(); + throw new \Exception(); } return $config;