diff options
author | Tobias Schultze <webmaster@tubo-world.de> | 2013-11-10 18:06:47 +0100 |
---|---|---|
committer | Tobias Schultze <webmaster@tubo-world.de> | 2013-11-11 19:40:07 +0100 |
commit | 559a3f685176f82ff0bd8b90a392dcd21c462f39 (patch) | |
tree | fffc7b6b33e08dade30c8ae4c45de8c5364f7d9c /Http | |
parent | cd107f089dc31f7d47c77149d1de8baabaa668d8 (diff) | |
download | symfony-security-559a3f685176f82ff0bd8b90a392dcd21c462f39.zip symfony-security-559a3f685176f82ff0bd8b90a392dcd21c462f39.tar.gz symfony-security-559a3f685176f82ff0bd8b90a392dcd21c462f39.tar.bz2 |
unify constructor initialization style throughout symfony
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/DigestAuthenticationListener.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Http/Firewall/DigestAuthenticationListener.php b/Http/Firewall/DigestAuthenticationListener.php index ea85e77..a5e0222 100644 --- a/Http/Firewall/DigestAuthenticationListener.php +++ b/Http/Firewall/DigestAuthenticationListener.php @@ -139,7 +139,7 @@ class DigestAuthenticationListener implements ListenerInterface class DigestData { - private $elements; + private $elements = array(); private $header; private $nonceExpiryTime; @@ -147,7 +147,6 @@ class DigestData { $this->header = $header; preg_match_all('/(\w+)=("((?:[^"\\\\]|\\\\.)+)"|([^\s,$]+))/', $header, $matches, PREG_SET_ORDER); - $this->elements = array(); foreach ($matches as $match) { if (isset($match[1]) && isset($match[3])) { $this->elements[$match[1]] = isset($match[4]) ? $match[4] : $match[3]; |