/**
* 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