Skip to content

Commit a2cbca0

Browse files
committed
Fix inconsistent return points.
1 parent 5909c90 commit a2cbca0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Security/FirewallMap.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ public function getFirewallConfig(Request $request)
135135
$context = $this->getFirewallContext($request);
136136

137137
if (null === $context) {
138-
return;
138+
return null;
139139
}
140140

141141
return $context->getConfig();
142142
}
143143

144144
/**
145-
* @return FirewallContext
145+
* @return FirewallContext|null
146146
*/
147147
private function getFirewallContext(Request $request)
148148
{
@@ -164,5 +164,7 @@ private function getFirewallContext(Request $request)
164164
return $this->container->get($contextId);
165165
}
166166
}
167+
168+
return null;
167169
}
168170
}

0 commit comments

Comments
 (0)