Skip to content

Commit c6700c7

Browse files
committed
Simplify README.md
1 parent 211c95f commit c6700c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use Bakame\Http\StructuredFields\OuterList;
1717

1818
//1 - parsing an Accept Header
1919
$fieldValue = 'text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8';
20-
$field = OuterList::fromRfc9651($fieldValue);
21-
$field[1]->value()->toString(); // returns 'application/xhtml+xml'
22-
$field[1]->parameterByKey(key: 'q', default: 1.0); // returns 1.0 if the parameter is not defined
20+
$container = OuterList::fromRfc9651($fieldValue);
21+
$container[1]->value()->toString(); // returns 'application/xhtml+xml'
22+
$container[1]->parameterByKey(key: 'q', default: 1.0); // returns 1.0 if the parameter is not defined
2323
```
2424

2525
## System Requirements

0 commit comments

Comments
 (0)