Skip to content

Commit e44141f

Browse files
committed
use strict for in_array() string route name
1 parent bfa73b6 commit e44141f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpsTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private function isGoingToBeForcedToHttps(RouteMatch|RouteResult|null $match = n
3535

3636
if ($this->config['force_all_routes']) {
3737
return ! (! empty($this->config['exclude_specific_routes'])
38-
&& in_array($matchedRouteName, $this->config['exclude_specific_routes']));
38+
&& in_array($matchedRouteName, $this->config['exclude_specific_routes'], true));
3939
}
4040

41-
return in_array($matchedRouteName, $this->config['force_specific_routes']);
41+
return in_array($matchedRouteName, $this->config['force_specific_routes'], true);
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)