Skip to content

Commit d6e7836

Browse files
committed
merged branch drak/flashcount (PR #6423)
This PR was merged into the 2.1 branch. Commits ------- 8513777 [HttpFoundation] Update docblock for non-working method Discussion ---------- [HttpFoundation] Update docblock for non-working method Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Rerences the following tickets: #6408 Todo: - License of the code: MIT Documentation PR: - --------------------------------------------------------------------------- by piotrpasich at 2012-12-19T21:32:24Z I think that we shouldn't comment it as not working but add new methods called countFlashes and countFlashesTypes. CountFlashesTypes should return count($this->flashBag) and countFlashes should count all items in every array inside flashbag. --------------------------------------------------------------------------- by drak at 2012-12-20T17:43:38Z ping @fabpot
2 parents bfb4d6d + 790b51d commit d6e7836

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Session/Flash/FlashBag.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ public function getIterator()
177177
/**
178178
* Returns the number of flashes.
179179
*
180+
* This method does not work.
181+
*
182+
* @deprecated in 2.2, removed in 2.3
183+
* @see https://github.com/symfony/symfony/issues/6408
184+
*
180185
* @return int The number of flashes
181186
*/
182187
public function count()

0 commit comments

Comments
 (0)