Skip to content

Commit 25debfb

Browse files
committed
Reflect the real intention on the promise returned by the Plugin
1 parent 07dc655 commit 25debfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface Plugin
2424
* @param callable $next Next middleware in the chain, the request is passed as the first argument
2525
* @param callable $first First middleware in the chain, used to to restart a request
2626
*
27-
* @return Promise
27+
* @return Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception.
2828
*/
2929
public function handleRequest(RequestInterface $request, callable $next, callable $first);
3030
}

0 commit comments

Comments
 (0)