diff --git a/src/Dictionary.php b/src/Dictionary.php index 09e538a..8a31869 100644 --- a/src/Dictionary.php +++ b/src/Dictionary.php @@ -9,6 +9,7 @@ use CallbackFilterIterator; use Countable; use DateTimeInterface; +use Exception; use Iterator; use IteratorAggregate; use Stringable; @@ -141,7 +142,7 @@ public static function fromRfc8941(Stringable|string $httpValue): self * * @see https://www.rfc-editor.org/rfc/rfc9651.html#section-3.2 * - * @throws StructuredFieldError|Throwable If the string is not a valid + * @throws StructuredFieldError|Exception If the string is not a valid */ public static function fromHttpValue(Stringable|string $httpValue, Ietf $rfc = Ietf::Rfc9651): self { diff --git a/src/OuterList.php b/src/OuterList.php index 45f87a3..644f199 100644 --- a/src/OuterList.php +++ b/src/OuterList.php @@ -8,6 +8,7 @@ use Bakame\Http\StructuredFields\Validation\Violation; use Countable; use DateTimeInterface; +use Exception; use Iterator; use IteratorAggregate; use Stringable; @@ -53,6 +54,8 @@ private function __construct( * Returns an instance from an HTTP textual representation. * * @see https://www.rfc-editor.org/rfc/rfc9651.html#section-3.1 + * + * @throws SyntaxError|Exception */ public static function fromHttpValue(Stringable|string $httpValue, Ietf $rfc = Ietf::Rfc9651): self {