Skip to content

Commit

Permalink
Update documentation v2
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 19, 2024
1 parent 79424e4 commit 56732e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions docs/07-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ echo $container; // returns '(:SGVsbG8gV29ybGQ=: 42.0 42)'
As a rule of thumb all the classes from this package are final and immutable and
expose no particular interface.

> [!IMPORTANT]
> The `StructuredField` interface should be seen as an internal implementation detail
> and should not be implemented outside the package. While PHP does not prohibit such
> action, **you MUST NOT implement the `StructuredField` interface.**
The reason for disallowing the `StructuredField` interface is simple. We want to ensure
that in any situation the RFC is being respected. The contract is between the RFC and your
code the package only acts as a link between both parties.
The reason is to ensure that in any situation the RFC is being respected. The contract
is between the RFC and your code the package only acts as a link between both parties.

## Closed for extension opened for composition

Expand Down
2 changes: 1 addition & 1 deletion src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function fromRfc8941(Stringable|string $httpValue): self

/**
* Returns a new instance from an HTTP Header or Trailer value string
* in compliance with RFC8941.
* in compliance with a published RFC.
*
* @see https://www.rfc-editor.org/rfc/rfc9651.html#section-3.3
*
Expand Down

0 comments on commit 56732e0

Please sign in to comment.