Skip to content

Commit

Permalink
Improve Item implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 9, 2024
1 parent dda5653 commit d4e0b36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use CallbackFilterIterator;
use Countable;
use DateTimeInterface;
use Exception;
use Iterator;
use IteratorAggregate;
use Stringable;
Expand Down Expand Up @@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions src/OuterList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Bakame\Http\StructuredFields\Validation\Violation;
use Countable;
use DateTimeInterface;
use Exception;
use Iterator;
use IteratorAggregate;
use Stringable;
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit d4e0b36

Please sign in to comment.