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

Skip to content

Commit 2e4bc95

Browse files
committed
Added expected deprecation notice to \Symfony\Bundle\FrameworkBundle\Tests\Functional\SessionTest::testFlashOnInjectedFlashbag
1 parent a510f9b commit 2e4bc95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SessionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public function testFlash($config, $insulate)
7272
/**
7373
* Tests flash messages work when flashbag service is injected to the constructor.
7474
*
75+
* @group legacy
76+
* @expectedDeprecation The "session.flash_bag" service is deprecated since Symfony 5.1. Use $session->getFlashBag() instead
7577
* @dataProvider getConfigs
7678
*/
7779
public function testFlashOnInjectedFlashbag($config, $insulate)

0 commit comments

Comments
 (0)