diff --git a/src/Error/Required.php b/src/Error/Required.php index 5baa2f69..17bd1895 100644 --- a/src/Error/Required.php +++ b/src/Error/Required.php @@ -26,7 +26,12 @@ */ class Required extends \Exception { - public function __construct($message, $code, Exception $previous) + /*** + * @param string $message + * @param null $code + * @param \Exception|null $previous + */ + public function __construct($message, $code = null, \Exception $previous = null) { $message = "'$message' is required"; parent::__construct($message, $code, $previous);