Skip to content

Commit 34bb331

Browse files
authored
suffix with "Interface" (#7)
1 parent 82cf0dd commit 34bb331

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/ClientException.php renamed to src/ClientExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
/**
66
* Every HTTP client related Exception MUST implement this interface.
77
*/
8-
interface ClientException extends \Throwable
8+
interface ClientExceptionInterface extends \Throwable
99
{
1010
}

src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface ClientInterface
2525
*
2626
* @return ResponseInterface
2727
*
28-
* @throws \Psr\Http\Client\ClientException If an error happens while processing the request.
28+
* @throws \Psr\Http\Client\ClientExceptionInterface If an error happens while processing the request.
2929
*/
3030
public function sendRequest(RequestInterface $request): ResponseInterface;
3131
}

src/NetworkException.php renamed to src/NetworkExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* Example: the target host name can not be resolved or the connection failed.
1313
*/
14-
interface NetworkException extends ClientException
14+
interface NetworkExceptionInterface extends ClientExceptionInterface
1515
{
1616
/**
1717
* Returns the request.

src/RequestException.php renamed to src/RequestExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* - Request is invalid (e.g. method is missing)
1212
* - Runtime request errors (e.g. the body stream is not seekable)
1313
*/
14-
interface RequestException extends ClientException
14+
interface RequestExceptionInterface extends ClientExceptionInterface
1515
{
1616
/**
1717
* Returns the request.

0 commit comments

Comments
 (0)