Skip to content

Commit 638e143

Browse files
committed
Improve documentation structure
1 parent 62683e2 commit 638e143

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/07-extensions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ is between the RFC and your code the package only acts as a link between both pa
1515

1616
## DataTypes are Stringable
1717

18-
All Datatypes expose the `Stringable` interface while it is recommended to use
19-
the `toHttpValue` method for better granularity but supporting the `Stringable`
18+
All Datatypes expose the `Stringable` interface. Supporting the `Stringable`
2019
interface allows the package to easily interface with packages and frameworks
2120
which expects a string or a stringable object when adding or updating
22-
HTTP field values.
21+
HTTP field values. Having said that, the recommendation is still to use
22+
the `toHttpValue` method for better granularity and ease of usage.
2323

2424
```php
2525
$container = InnerList::new(Byte::fromDecoded('Hello World'), 42.0, 42);
@@ -77,7 +77,7 @@ class readonly AcceptHeaderItem implements StructuredFieldProvider
7777
Parameters::new()
7878
->append('q', $this->quality)
7979
->filter(fn (array $pair): bool => $pair[0] !== 'q' || 1.0 !== $pair[1]->value())
80-
);
80+
);
8181
}
8282
}
8383
```

0 commit comments

Comments
 (0)