Fix ServerRequestInterface docblock type

This commit is contained in:
Andrew Millington 2018-05-13 17:52:45 +01:00
parent f8c2e721a0
commit 793000f149

View File

@ -10,7 +10,7 @@
namespace League\OAuth2\Server\Exception; namespace League\OAuth2\Server\Exception;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequest; use Psr\Http\Message\ServerRequestInterface;
class OAuthServerException extends \Exception class OAuthServerException extends \Exception
{ {
@ -40,7 +40,7 @@ class OAuthServerException extends \Exception
private $payload; private $payload;
/** /**
* @var ServerRequest * @var ServerRequestInterface
*/ */
private $serverRequest; private $serverRequest;
@ -93,7 +93,7 @@ class OAuthServerException extends \Exception
/** /**
* Set the server request that is responsible for generating the exception * Set the server request that is responsible for generating the exception
* *
* @param ServerRequest $serverRequest * @param ServerRequestInterface $serverRequest
*/ */
public function setServerRequest($serverRequest) public function setServerRequest($serverRequest)
{ {
@ -133,7 +133,7 @@ class OAuthServerException extends \Exception
/** /**
* Invalid client error. * Invalid client error.
* *
* @param ServerRequest $serverRequest * @param ServerRequestInterface $serverRequest
* *
* @return static * @return static
*/ */