Skip to content

Commit 425424e

Browse files
committed
Fix more generic types
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 575f839 commit 425424e

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)