From d67f090003de4b99b6706bad1485918cc1f66ed1 Mon Sep 17 00:00:00 2001 From: Dawid Nowak Date: Mon, 1 Aug 2016 17:57:55 +0200 Subject: [PATCH] SecurityBundle:BasicAuthenticationListener: removed a default argument on getting a header value it's unnecessary. --- .../Security/Http/Firewall/BasicAuthenticationListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php index ebe96ea2fb..5bbf13d9b8 100644 --- a/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php @@ -56,7 +56,7 @@ class BasicAuthenticationListener implements ListenerInterface { $request = $event->getRequest(); - if (false === $username = $request->headers->get('PHP_AUTH_USER', false)) { + if (null === $username = $request->headers->get('PHP_AUTH_USER')) { return; }