From 4c6fe1cd6ca181cd00098ac1e42c448ff0ce0662 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 31 May 2023 18:44:40 +0900 Subject: [PATCH] Fix Logger\Logger Psr Excpetion calls --- www/lib/CoreLibs/Logging/Logging.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/lib/CoreLibs/Logging/Logging.php b/www/lib/CoreLibs/Logging/Logging.php index 81630a33..a05ab98c 100644 --- a/www/lib/CoreLibs/Logging/Logging.php +++ b/www/lib/CoreLibs/Logging/Logging.php @@ -213,7 +213,7 @@ class Logging $settings['mandatory'] && !isset($options[$name]) && empty($settings['alias']) ) { - throw new \InvalidArgumentException( + throw new InvalidArgumentException( 'Missing mandatory option: "' . $name . '"', E_USER_WARNING ); @@ -230,7 +230,7 @@ class Logging switch ($settings['type']) { case 'bool': if (!is_bool($this->options[$name])) { - throw new \InvalidArgumentException( + throw new InvalidArgumentException( 'Option: "' . $name . '" is not of type bool', E_USER_ERROR ); @@ -238,7 +238,7 @@ class Logging break; case 'string': if (!is_string($this->options[$name])) { - throw new \InvalidArgumentException( + throw new InvalidArgumentException( 'Option: "' . $name . '" is not of type string', E_USER_ERROR ); @@ -249,7 +249,7 @@ class Logging empty($settings['type_info']) || !$this->options[$name] instanceof $settings['type_info'] ) { - throw new \InvalidArgumentException( + throw new InvalidArgumentException( 'Option: "' . $name . '" is not of instance ' . ($settings['type_info'] ?? 'NO INSTANCE DEFINED'), E_USER_ERROR