Continued:
[core.git] / framework / main / exceptions / xml / class_InvalidXmlNodeException.php
index fc658552454f07af5ec049effd66218dd7d801ec..4479c9666a5d7a9531104e2c3e0730cbc50b858a 100644 (file)
@@ -10,7 +10,7 @@ use Org\Mxchange\CoreFramework\Generic\FrameworkException;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -35,12 +35,12 @@ class InvalidXmlNodeException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Extract attributes
                $attributes = '<em>None</em>';
                if ((is_array($classArray[2])) && (count($classArray[2]) > 0)) {
                        $attributes = implode(', ', $classArray[2]);
-               } // END - if
+               }
 
                // Construct our message
                $message = sprintf('[%s:%d] Invalid XML node found: %s, attributes: %s.',