File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments