Skip to content

Commit 9c35dcd

Browse files
committed
fix
1 parent a9556fa commit 9c35dcd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

phpstan-baseline.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ parameters:
1212
count: 2
1313
path: src/Listener/ForceHttps.php
1414

15+
-
16+
message: '#^Method ForceHttpsModule\\Listener\\ForceHttps\:\:isGoingToBeForcedToHttps\(\) should return bool but returns mixed\.$#'
17+
identifier: return.type
18+
count: 1
19+
path: src/Listener/ForceHttps.php
20+
1521
-
1622
message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#'
1723
identifier: argument.type
@@ -60,6 +66,12 @@ parameters:
6066
count: 2
6167
path: src/Middleware/ForceHttps.php
6268

69+
-
70+
message: '#^Method ForceHttpsModule\\Middleware\\ForceHttps\:\:isGoingToBeForcedToHttps\(\) should return bool but returns mixed\.$#'
71+
identifier: return.type
72+
count: 1
73+
path: src/Middleware/ForceHttps.php
74+
6375
-
6476
message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#'
6577
identifier: argument.type

src/HttpsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private function isSchemeHttps(string $uriScheme): bool
2828
private function isGoingToBeForcedToHttps(RouteMatch|RouteResult|null $match = null): bool
2929
{
3030
if ($match === null || ($match instanceof RouteResult && $match->isFailure())) {
31-
return (bool) ($this->config['allow_404'] ?? false);
31+
return $this->config['allow_404'] ?? false;
3232
}
3333

3434
$matchedRouteName = $match->getMatchedRouteName();

0 commit comments

Comments
 (0)