Skip to content

Commit 860660e

Browse files
authored
Merge pull request #158 from Xerkus/hotifx/numeric-headers-docs
Fix docs referring to array key as value
2 parents 283cdc5 + 60d4d8c commit 860660e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/v3/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RFC-7230 defines an ABNF pattern for header field names that allows the possibil
2626
```
2727

2828
The PSR-7, `Psr\Http\MessageInterface::getHeaders()` method requires implementations to return an associative array, where the key is the header field name.
29-
This triggers an interesting quirk in PHP: when adding a value to an array using a string that consists of an integer value, PHP will convert this value to an integer (see [PHP bug 80309](https://bugs.php.net/bug.php?id=80309) for more details).
29+
This triggers an interesting quirk in PHP: when adding an element to an array with a string key that consists of an integer value, PHP will convert this key to an integer (see [PHP bug 80309](https://bugs.php.net/bug.php?id=80309) for more details).
3030
This presents several issues:
3131

3232
- First, it means that consumers cannot depend on the header field name returned being a string.

0 commit comments

Comments
 (0)