chore: fix deprecations in preparation uf upgrading to symfony 7.3

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent a057088808
commit 4decaa6789
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);
}