Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45465e4

Browse files
committed
merged branch jfsimon/issue-8294 (PR #8611)
This PR was merged into the master branch. Discussion ---------- [HttpFoundation] deprecates FlashBag::getIterator() method This PR does not fix #8294 but this issue is not fixable. The `FlashBag::getIterator()` method actualy does not make any sense and is confusing. It should be removed. I just added a `@deprecated` tag and `Will be removed in 3.0.` message because removing it now would introduce a BC break. I guess issue #8294 can be closed after merge as it make not more sense than the incriminated method. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #8294 Commits ------- ce8a7d6 [HttpFoundation] deprecated FlashBag::getIterator() method
2 parents f678652 + ce8a7d6 commit 45465e4

File tree

1 file changed

+4
-0
lines changed
  • src/Symfony/Component/HttpFoundation/Session/Flash

1 file changed

+4
-0
lines changed

src/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* FlashBag flash message container.
1616
*
17+
* \IteratorAggregate implementation is deprecated and will be removed in 3.0.
18+
*
1719
* @author Drak <[email protected]>
1820
*/
1921
class FlashBag implements FlashBagInterface, \IteratorAggregate
@@ -167,6 +169,8 @@ public function clear()
167169
/**
168170
* Returns an iterator for flashes.
169171
*
172+
* @deprecated Will be removed in 3.0.
173+
*
170174
* @return \ArrayIterator An \ArrayIterator instance
171175
*/
172176
public function getIterator()

0 commit comments

Comments
 (0)