Skip to content

Commit f65fdc5

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [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
2 parents c55a8f7 + 3d259bd commit f65fdc5

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)