X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fmain%2Fclass_GetterNotFoundException.php;fp=inc%2Fclasses%2Fexceptions%2Fmain%2Fclass_GetterNotFoundException.php;h=0020169c97d4bc0c402d83243802b0cc297c5ebd;hp=a632dcd2955d534ff5b7efad644408b5309b2c95;hb=4c853fd49e21d5d3ae7a3c0c2822c788643375c7;hpb=1cf250f18e86026eb4ef799fd85dec8e54686f61 diff --git a/inc/classes/exceptions/main/class_GetterNotFoundException.php b/inc/classes/exceptions/main/class_GetterNotFoundException.php index a632dcd..0020169 100644 --- a/inc/classes/exceptions/main/class_GetterNotFoundException.php +++ b/inc/classes/exceptions/main/class_GetterNotFoundException.php @@ -29,10 +29,7 @@ class GetterNotFoundException extends FrameworkException { * @param $code Code number for the exception * @return void */ - public function __construct ($dataArray, $code) { - // Cast the array - $dataArray = (array) $dataArray; - + public function __construct (array $dataArray, $code) { // Add a message around the missing class $message = sprintf("[%s:%d] Getter-Methode für Attribut %s nicht gefunden.", $dataArray[0]->__toString(),