Skip to content

Commit 104e1a6

Browse files
committed
remove unneded response parameter
1 parent c576ec3 commit 104e1a6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/HttpsTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ private function isGoingToBeForcedToHttps($match = null) : bool
5454
/**
5555
* Check if Setup Strict-Transport-Security need to be skipped.
5656
*
57-
* @param Response|ResponseInterface $response
5857
* @param RouteMatch|RouteResult|null $match
5958
*
6059
*/
61-
private function isSkippedHttpStrictTransportSecurity(string $uriScheme, $response, $match = null) : bool
60+
private function isSkippedHttpStrictTransportSecurity(string $uriScheme, $match = null) : bool
6261
{
6362
return ! $this->isSchemeHttps($uriScheme) ||
6463
! $this->isGoingToBeForcedToHttps($match) ||

src/Listener/ForceHttps.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function setHttpStrictTransportSecurity(
4141
Response $response,
4242
RouteMatch $match = null
4343
) : Response {
44-
if ($this->isSkippedHttpStrictTransportSecurity($uriScheme, $response, $match)) {
44+
if ($this->isSkippedHttpStrictTransportSecurity($uriScheme, $match)) {
4545
return $response;
4646
}
4747

src/Middleware/ForceHttps.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ private function setHttpStrictTransportSecurity(
3333
ResponseInterface $response,
3434
RouteResult $match
3535
) : ResponseInterface {
36-
37-
if ($this->isSkippedHttpStrictTransportSecurity($uriScheme, $response, $match)) {
36+
if ($this->isSkippedHttpStrictTransportSecurity($uriScheme, $match)) {
3837
return $response;
3938
}
4039

0 commit comments

Comments
 (0)