Skip to content

Commit 1be2a05

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: [Finder] Fix gitignore regex build with "**" Fixed deprecation warnings about passing null as parameter [Security] Keep Bulgarian wording consistent across all texts. Migrate configuration file for PHP CS Fixer 2.19/3.0 [Form] Replace broken ServerParams mock [Mailer] Fix SES API call with UTF-8 Addresses
2 parents e099d58 + f65fdc5 commit 1be2a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firewall/UsernamePasswordJsonAuthenticationListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function __construct(TokenStorageInterface $tokenStorage, AuthenticationM
7979

8080
public function supports(Request $request): ?bool
8181
{
82-
if (false === strpos($request->getRequestFormat(), 'json')
83-
&& false === strpos($request->getContentType(), 'json')
82+
if (false === strpos($request->getRequestFormat() ?? '', 'json')
83+
&& false === strpos($request->getContentType() ?? '', 'json')
8484
) {
8585
return false;
8686
}

0 commit comments

Comments
 (0)