chore: fix deprecations in preparation uf upgrading to symfony 7.3

This commit is contained in:
Björn Fromme
2025-10-24 13:59:54 +02:00
parent c8bb051ae6
commit 6b0dfb3426
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class SecurityController extends AbstractController
// authentication (see App\EventListener\AuthorizationCodeListener).
$session = $request->getSession();
$targetPath = $session->get('_security.main.target_path');
if (str_contains($targetPath, '/authorize')) {
if (null !== $targetPath && str_contains($targetPath, '/authorize')) {
$session->set('_oauth2', true);
}