]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/main/class_GetterNotFoundException.php
Again, a commit! ;-)
[shipsimu.git] / inc / classes / exceptions / main / class_GetterNotFoundException.php
index a632dcd2955d534ff5b7efad644408b5309b2c95..0020169c97d4bc0c402d83243802b0cc297c5ebd 100644 (file)
@@ -29,10 +29,7 @@ class GetterNotFoundException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
         * @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&uuml;r Attribut <span class=\"exception_reason\">%s</span> nicht gefunden.",
                        $dataArray[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Getter-Methode f&uuml;r Attribut <span class=\"exception_reason\">%s</span> nicht gefunden.",
                        $dataArray[0]->__toString(),