Skip to content

Commit d02270b

Browse files
committed
minor #43903 Fix more generic types (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- Fix more generic types | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Some changes I wanted to push to #42471, but then it got merged already. 😇 Commits ------- c54d61e9af Fix more generic types
2 parents e283083 + 425424e commit d02270b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

HeaderBag.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
*
1717
* @author Fabien Potencier <fabien@symfony.com>
1818
*
19-
* @implements \IteratorAggregate<string, array<int, string|null>>
19+
* @implements \IteratorAggregate<string, list<string|null>>
2020
*/
2121
class HeaderBag implements \IteratorAggregate, \Countable
2222
{
2323
protected const UPPER = '_ABCDEFGHIJKLMNOPQRSTUVWXYZ';
2424
protected const LOWER = '-abcdefghijklmnopqrstuvwxyz';
2525

2626
/**
27-
* @var array<string, array<int, string|null>>
27+
* @var array<string, list<string|null>>
2828
*/
2929
protected $headers = [];
3030
protected $cacheControl = [];
@@ -255,7 +255,7 @@ public function removeCacheControlDirective(string $key)
255255
/**
256256
* Returns an iterator for headers.
257257
*
258-
* @return \ArrayIterator<string, array<int, string|null>>
258+
* @return \ArrayIterator<string, list<string|null>>
259259
*/
260260
#[\ReturnTypeWillChange]
261261
public function getIterator()

0 commit comments

Comments
 (0)