We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb6c8b commit 31b58b1Copy full SHA for 31b58b1
src/HttpsTrait.php
@@ -30,13 +30,8 @@ private function isSchemeHttps(string $uriScheme) : bool
30
*/
31
private function isGoingToBeForcedToHttps($match = null) : bool
32
{
33
- $is404 = $match === null || ($match instanceof RouteResult && $match->isFailure());
34
- if ($is404) {
35
- if (! isset($this->config['allow_404'])) {
36
- return false;
37
- }
38
-
39
- return $this->config['allow_404'];
+ if ($match === null || ($match instanceof RouteResult && $match->isFailure())) {
+ return $this->config['allow_404'] ?? false;
40
}
41
42
if ($this->config['force_all_routes']) {
0 commit comments