Skip to content

Commit c250907

Browse files
committed
fixed leftover deprecations PHP 8.1
1 parent a6e2c28 commit c250907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authenticator/JsonLoginAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct(HttpUtils $httpUtils, UserProviderInterface $userPro
7070

7171
public function supports(Request $request): ?bool
7272
{
73-
if (false === strpos($request->getRequestFormat(), 'json') && false === strpos($request->getContentType(), 'json')) {
73+
if (false === strpos($request->getRequestFormat() ?? '', 'json') && false === strpos($request->getContentType() ?? '', 'json')) {
7474
return false;
7575
}
7676

0 commit comments

Comments
 (0)