From: MeinAccount Date: Sat, 25 Feb 2012 15:48:10 +0000 (+0100) Subject: Added type casting to \Exception::__construct() X-Git-Tag: 2.0.0_Beta_1~1306^2~3^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8cd78b34898ce4903f7254ac39b20c06b948dff;p=GitHub%2FWoltLab%2FWCF.git Added type casting to \Exception::__construct() --- diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 227f42014e..8d670b2fc5 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -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; }