X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=framework%2Fmain%2Fexceptions%2Fstate%2Fclass_InvalidStateInstanceException.php;h=4992cd68015fbd9b2226eeadb2623358aa66e304;hb=498e6b065ce47804bff4e1073592a2cc8e28f8ef;hp=f529843b3901359935d7a1c84c87724793a9a483;hpb=b002c5909aa0f781505dde5414964b0f014cde01;p=core.git diff --git a/framework/main/exceptions/state/class_InvalidStateInstanceException.php b/framework/main/exceptions/state/class_InvalidStateInstanceException.php index f529843b..4992cd68 100644 --- a/framework/main/exceptions/state/class_InvalidStateInstanceException.php +++ b/framework/main/exceptions/state/class_InvalidStateInstanceException.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 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -35,12 +35,12 @@ class InvalidStateInstanceException 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 state %s of type %s detected.', - $msgArray[0]->__toString(), + $messageArray[0]->__toString(), $this->getLine(), - $msgArray[1], + $messageArray[1], gettype($mgArray[2]) );