From d8cd78b34898ce4903f7254ac39b20c06b948dff Mon Sep 17 00:00:00 2001 From: MeinAccount Date: Sat, 25 Feb 2012 16:48:10 +0100 Subject: [PATCH] Added type casting to \Exception::__construct() --- .../files/lib/system/exception/SystemException.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1