]> git.mxchange.org Git - core.git/blobdiff - framework/main/exceptions/file_directory/class_InvalidDataLengthException.php
Continued:
[core.git] / framework / main / exceptions / file_directory / class_InvalidDataLengthException.php
index 090644d3594bbe935f5098ae9581fdcc008bd1a7..83b5758255cc25ed73f6c855b36ee0a1893d363c 100644 (file)
@@ -32,17 +32,17 @@ class InvalidDataLengthException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Message from the exception
+        * @param       $messageArray   Message from the exception
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Unexpected data length of %s bytes has been detected, %s bytes were expected.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[2]
+                       $messageArray[1],
+                       $messageArray[2]
                );
 
                // Call parent constructor