Added type casting to \Exception::__construct()
authorMeinAccount <magnus.khn@googlemail.com>
Sat, 25 Feb 2012 15:48:10 +0000 (16:48 +0100)
committerMeinAccount <magnus.khn@googlemail.com>
Sat, 25 Feb 2012 15:48:10 +0000 (16:48 +0100)
wcfsetup/install/files/lib/system/exception/SystemException.class.php

index 227f42014ee955c8d5ef01c448c7f672ed945eae..8d670b2fc5b54ef45f1d44d30c6ed2daa68a7c41 100644 (file)
@@ -41,7 +41,7 @@ class SystemException extends LoggedException implements IPrintableException {
         * @param       \Exception      $previous       repacked Exception
         */
        public function __construct($message = '', $code = 0, $description = '', \Exception $previous = null) {
-               parent::__construct($message, $code, $previous);
+               parent::__construct((string)$message, (int)$code, $previous);
                $this->description = $description;
        }