Skip to content

Commit 0ea92fb

Browse files
committed
Restore return type to covariant IteratorAggregate implementations
1 parent e821452 commit 0ea92fb

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

HeaderBag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ public function removeCacheControlDirective(string $key)
238238

239239
/**
240240
* Returns an iterator for headers.
241+
*
242+
* @return \ArrayIterator<string, list<string|null>>
241243
*/
242244
public function getIterator(): \ArrayIterator
243245
{

ParameterBag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ public function filter(string $key, mixed $default = null, int $filter = \FILTER
171171

172172
/**
173173
* Returns an iterator for parameters.
174+
*
175+
* @return \ArrayIterator<string, mixed>
174176
*/
175177
public function getIterator(): \ArrayIterator
176178
{

Session/Attribute/AttributeBag.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public function clear(): mixed
130130

131131
/**
132132
* Returns an iterator for attributes.
133+
*
134+
* @return \ArrayIterator<string, mixed>
133135
*/
134136
public function getIterator(): \ArrayIterator
135137
{

Session/Session.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ public function isStarted(): bool
128128

129129
/**
130130
* Returns an iterator for attributes.
131+
*
132+
* @return \ArrayIterator<string, mixed>
131133
*/
132134
public function getIterator(): \ArrayIterator
133135
{

0 commit comments

Comments
 (0)