type hints added, unnessarry casts removed
[mailer.git] / inc / classes / exceptions / template / class_UnexpectedTemplateTypeException.php
index 06126039de186ea193a641bf32891222eaa79510..b1d0d14b8164dd0882df65b4a5f8c99d72b44031 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * An exception throws when the template type is not supported
+ * An exception thrown when the template type is not supported
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
@@ -29,7 +29,7 @@ class UnexpectedTemplateTypeException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Typ <u>%s</u> entspricht nicht dem erwartetem Template-Typ <u>%s</u>.",
                        $class[0]->__toString(),