From 1fe4d93c702e46d49e221899712646f36a8ae77d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 29 Sep 2023 15:04:37 +0200 Subject: [PATCH] Allow InvalidSource in ParsingFailed's constructor see e326e68386437737777b2753953099035f22e0d8 --- .../system/package/license/exception/ParsingFailed.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/license/exception/ParsingFailed.class.php b/wcfsetup/install/files/lib/system/package/license/exception/ParsingFailed.class.php index de6e93342d..b9431922a1 100644 --- a/wcfsetup/install/files/lib/system/package/license/exception/ParsingFailed.class.php +++ b/wcfsetup/install/files/lib/system/package/license/exception/ParsingFailed.class.php @@ -3,6 +3,7 @@ namespace wcf\system\package\license\exception; use CuyZ\Valinor\Mapper\MappingError; +use CuyZ\Valinor\Mapper\Source\Exception\InvalidSource; /** * The license data does not match the expectations of the license API. @@ -14,7 +15,7 @@ use CuyZ\Valinor\Mapper\MappingError; */ final class ParsingFailed extends \Exception { - public function __construct(MappingError $previous) + public function __construct(MappingError|InvalidSource $previous) { parent::__construct('The provided license data cannot be parsed.', 0, $previous); } -- 2.20.1