We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e1832 commit 9d12f22Copy full SHA for 9d12f22
AcceptHeader.php
@@ -46,11 +46,10 @@ public function __construct(array $items)
46
*/
47
public static function fromString(?string $headerValue): self
48
{
49
- $index = 0;
50
-
51
$parts = HeaderUtils::split($headerValue ?? '', ',;=');
52
53
- return new self(array_map(function ($subParts) use (&$index) {
+ return new self(array_map(function ($subParts) {
+ static $index = 0;
54
$part = array_shift($subParts);
55
$attributes = HeaderUtils::combine($subParts);
56
0 commit comments