Skip to content

Commit 24a9dd5

Browse files
Rework
1 parent 1d48f20 commit 24a9dd5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,7 @@ protected function addFlash(string $type, mixed $message): void
180180
}
181181

182182
if (!$session instanceof FlashBagAwareSessionInterface) {
183-
trigger_deprecation(
184-
'symfony/framework-bundle',
185-
'6.2',
186-
'Calling addFlash method when the session does not implements %s is deprecated.',
187-
FlashBagAwareSessionInterface::class
188-
);
183+
trigger_deprecation('symfony/framework-bundle', '6.2', 'Calling "addFlash()" method when the session does not implement %s is deprecated.', FlashBagAwareSessionInterface::class);
189184
}
190185

191186
$session->getFlashBag()->add($type, $message);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy