Skip to content

Commit

Permalink
bug #966 fix getIterator compatible with php 8.1 (eerison)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

fix getIterator compatible with php 8.1

Commits
-------

bed4848 fix getInterator compatible with php 8.1
  • Loading branch information
chalasr committed Dec 8, 2021
2 parents 41cd259 + bed4848 commit e1e5d01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions TokenExtractor/ChainTokenExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ public function extract(Request $request)
/**
* Iterates over the mapped token extractors while generating them.
*
* An extractor is initialized only if we really need it (at
* the corresponding iteration).
* #[\ReturnTypeWillChange]
*
* @return \Generator The generated {@link TokenExtractorInterface} implementations
* @return \Traversable|TokenExtractorInterface[]
*/
public function getIterator()
{
Expand Down

0 comments on commit e1e5d01

Please sign in to comment.