code comments including license information added, type hints added, minor rewrites...
[shipsimu.git] / inc / classes / exceptions / compressor / class_MismatchingCompressorsException.php
index 4ff32f0726ce112bb9b660d0bdeeb7887e8c2fcb..2ca8d613e9a682c8282ee82adf229d5803942265 100644 (file)
@@ -25,14 +25,11 @@ class MismatchingCompressorsException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Kompressor <u>%s</u> zu den geladenen Daten aus <u>%s</u> und der aktuell verwendete Kompressor <u>%s</u> stimmen nicht &uuml;berein!",
                        $array[0]->__toString(),