From cd11527b29ceb340f24015b6df868c22908bcf12 Mon Sep 17 00:00:00 2001 From: araab Date: Wed, 12 Oct 2022 19:33:08 +0200 Subject: [PATCH] feat: adjust type hint for Symfony 6 (#1030) --- src/OAuth2/Response.php | 3 +-- src/OAuth2/ResponseInterface.php | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/OAuth2/Response.php b/src/OAuth2/Response.php index 88c1ad5f7..be1eaa2ac 100644 --- a/src/OAuth2/Response.php +++ b/src/OAuth2/Response.php @@ -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()) { diff --git a/src/OAuth2/ResponseInterface.php b/src/OAuth2/ResponseInterface.php index fe920864a..df4fa48f5 100644 --- a/src/OAuth2/ResponseInterface.php +++ b/src/OAuth2/ResponseInterface.php @@ -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