File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ is between the RFC and your code the package only acts as a link between both pa
15
15
16
16
## DataTypes are Stringable
17
17
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 `
20
19
interface allows the package to easily interface with packages and frameworks
21
20
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.
23
23
24
24
``` php
25
25
$container = InnerList::new(Byte::fromDecoded('Hello World'), 42.0, 42);
@@ -77,7 +77,7 @@ class readonly AcceptHeaderItem implements StructuredFieldProvider
77
77
Parameters::new()
78
78
->append('q', $this->quality)
79
79
->filter(fn (array $pair): bool => $pair[0] !== 'q' || 1.0 !== $pair[1]->value())
80
- );
80
+ );
81
81
}
82
82
}
83
83
```
You can’t perform that action at this time.
0 commit comments