From 8fbe855fd4f061c85f5e3fd145eeb2c1dc3ad1db Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 31 May 2023 18:48:00 +0900 Subject: [PATCH] Logger\Logger Excpetion calls update --- src/Logging/Logging.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Logging/Logging.php b/src/Logging/Logging.php index 81630a3..a05ab98 100644 --- a/src/Logging/Logging.php +++ b/src/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