Skip to content

Commit

Permalink
feat: adjust type hint for Symfony 6 (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
araab authored Oct 12, 2022
1 parent 2bfaf9d commit cd11527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/OAuth2/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ public function getStatusCode()
}

/**
* @param int $statusCode
* @param string $text
* @throws InvalidArgumentException
*/
public function setStatusCode($statusCode, $text = null)
public function setStatusCode(int $statusCode, $text = null)
{
$this->statusCode = (int) $statusCode;
if ($this->isInvalid()) {
Expand Down
5 changes: 1 addition & 4 deletions src/OAuth2/ResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ public function addParameters(array $parameters);
*/
public function addHttpHeaders(array $httpHeaders);

/**
* @param int $statusCode
*/
public function setStatusCode($statusCode);
public function setStatusCode(int $statusCode);

/**
* @param int $statusCode
Expand Down

0 comments on commit cd11527

Please sign in to comment.