Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0bb5dd7

Browse filesBrowse files
committed
Missing setCurrentFirewall changes
1 parent b29b004 commit 0bb5dd7
Copy full SHA for 0bb5dd7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ public function getLogoutUrl($key = null)
7878
}
7979

8080
/**
81-
* @param string $key The current firewall key
81+
* @param string|null $key The current firewall key or null to unset
8282
* @param string|null $context The current firewall context
8383
*/
8484
public function setCurrentFirewall($key, $context = null)
8585
{
86-
$this->currentFirewall = array($key, $context);
86+
$this->currentFirewall = null !== $key ? array($key, $context) : null;
8787
}
8888

8989
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.