X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=framework%2Fmain%2Fexceptions%2Fmain%2Fclass_InvalidCommandException.php;h=ba7e536d9d52f9ea62ffdd1e113904e4586b5237;hb=refs%2Fheads%2Fmaster;hp=ca84cd071dd5600d1a9236eeb899c6d6c0284cb8;hpb=4f9cf34b521892cb99fae9b21b92787f3d555b74;p=core.git diff --git a/framework/main/exceptions/main/class_InvalidCommandException.php b/framework/main/exceptions/main/class_InvalidCommandException.php index ca84cd07..ba7e536d 100644 --- a/framework/main/exceptions/main/class_InvalidCommandException.php +++ b/framework/main/exceptions/main/class_InvalidCommandException.php @@ -10,7 +10,7 @@ use Org\Mxchange\CoreFramework\Generic\FrameworkException; * * @author Roland Haeder * @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,17 +35,17 @@ class InvalidCommandException extends FrameworkException { * @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] Invalid command %s (class %s) detected.', - $msgArray[0]->__toString(), + $messageArray[0]->__toString(), $this->getLine(), - $msgArray[1], - $msgArray[0]->getClassName() + $messageArray[1], + $messageArray[0]->getClassName() ); // Set extra data - $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine()); + $this->setExtraData($messageArray[0]->getClassName() . ':' . $this->getLine()); // Call parent constructor parent::__construct($message, $code);