Skip to content

Commit 75470e5

Browse files
authored
Merge pull request #199 from GrahamCampbell/plugin-doc
More specific plugin type doc
2 parents f398536 + c751c73 commit 75470e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ interface Plugin
2424
*
2525
* @see http://docs.php-http.org/en/latest/plugins/build-your-own.html
2626
*
27-
* @param callable $next Next middleware in the chain, the request is passed as the first argument
28-
* @param callable $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
2929
*
3030
* @return Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception (The same as HttpAsyncClient)
3131
*/

0 commit comments

Comments
 (0)