Skip to content

Commit 6c2e236

Browse files
committed
use the empty string instead of null as an array offset
1 parent eef742d commit 6c2e236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Logout/LogoutUrlGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ private function getListener(?string $key): array
146146
}
147147

148148
// Fetch from injected current firewall information, if possible
149-
if (isset($this->listeners[$this->currentFirewallName])) {
150-
return $this->listeners[$this->currentFirewallName];
149+
if (isset($this->listeners[$this->currentFirewallName ?? ''])) {
150+
return $this->listeners[$this->currentFirewallName ?? ''];
151151
}
152152

153153
foreach ($this->listeners as $listener) {

0 commit comments

Comments
 (0)