Skip to content

Commit c751c73

Browse files
Wasn't a typo... it's getting late :laugh:
1 parent d94c932 commit c751c73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Plugin.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Http\Promise\Promise;
88
use Psr\Http\Message\RequestInterface;
9-
use Psr\Http\Message\ResponseInterface;
109

1110
/**
1211
* A plugin is a middleware to transform the request and/or the response.
@@ -25,8 +24,8 @@ interface Plugin
2524
*
2625
* @see http://docs.php-http.org/en/latest/plugins/build-your-own.html
2726
*
28-
* @param callable(ResponseInterface): Promise $next Next middleware in the chain, the request is passed as the first argument
29-
* @param callable(ResponseInterface): Promise $first First middleware in the chain, used to to restart a request
27+
* @param callable(RequestInterface): Promise $next Next middleware in the chain, the request is passed as the first argument
28+
* @param callable(RequestInterface): Promise $first First middleware in the chain, used to to restart a request
3029
*
3130
* @return Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception (The same as HttpAsyncClient)
3231
*/

0 commit comments

Comments
 (0)