Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 14 Apr 2018 19:56:46 +0000 (21:56 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 14 Apr 2018 19:56:46 +0000 (21:56 +0200)
- fixed wrong constant reference, is now in FrameworkConfiguration

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/class_BaseFrameworkSystem.php

index 5875c00..3b29231 100644 (file)
@@ -1901,13 +1901,13 @@ Loaded includes:
                // Is it null?
                if (is_null($str)) {
                        // Throw NPE
-                       throw new NullPointerException($this, BaseFrameworkSystem::EXCEPTION_IS_NULL_POINTER);
+                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
                } elseif (!is_string($str)) {
                        // Entry is empty
-                       throw new InvalidArgumentException(sprintf('str[]=%s is not a string', gettype($str)), self::EXCEPTION_CONFIG_KEY_IS_EMPTY);
+                       throw new InvalidArgumentException(sprintf('str[]=%s is not a string', gettype($str)), FrameworkConfiguration::EXCEPTION_CONFIG_KEY_IS_EMPTY);
                } elseif ((is_string($str)) && (empty($str))) {
                        // Entry is empty
-                       throw new InvalidArgumentException('str is empty', self::EXCEPTION_CONFIG_KEY_IS_EMPTY);
+                       throw new InvalidArgumentException('str is empty', FrameworkConfiguration::EXCEPTION_CONFIG_KEY_IS_EMPTY);
                }
 
                // Convert them all