Fix CryptoException's constructor
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 17 Dec 2015 00:08:23 +0000 (01:08 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 17 Dec 2015 00:08:23 +0000 (01:08 +0100)
wcfsetup/install/files/lib/util/exception/CryptoException.class.php

index 186894359091154b4d58730ce3a653219d06a409..845dc2853f851e6763c0d4cf4c3dac6426a99b79 100644 (file)
@@ -15,7 +15,7 @@ class CryptoException extends \Exception {
        /**
         * @see \Exception::__construct()
         */
-       public function __construct($message, $previous) {
+       public function __construct($message, $previous = null) {
                parent::__construct($message, 0, $previous);
        }
 }