summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Nowak <code@dnowak.pl>2016-08-01 17:57:55 +0200
committerDawid Nowak <code@dnowak.pl>2016-08-01 17:57:55 +0200
commitcecc07439a8f0d2125df9726b99746d1897ee2ea (patch)
tree0b18dc338e3eb2aac5006917bc3df7e1ef711e0f
parentb6252ab5498bdf1583d06e9da39b444f552d2975 (diff)
downloadsymfony-security-cecc07439a8f0d2125df9726b99746d1897ee2ea.zip
symfony-security-cecc07439a8f0d2125df9726b99746d1897ee2ea.tar.gz
symfony-security-cecc07439a8f0d2125df9726b99746d1897ee2ea.tar.bz2
SecurityBundle:BasicAuthenticationListener: removed a default argument on getting a header value
it's unnecessary.
-rw-r--r--Http/Firewall/BasicAuthenticationListener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/BasicAuthenticationListener.php b/Http/Firewall/BasicAuthenticationListener.php
index ebe96ea..5bbf13d 100644
--- a/Http/Firewall/BasicAuthenticationListener.php
+++ b/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;
}