This repository was archived by the owner on Jan 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,6 @@ final class Promise implements HttpPromise
4444 */
4545 private $ request ;
4646
47- /**
48- * @param PromiseInterface $promise
49- * @param RequestInterface $request
50- */
5147 public function __construct (PromiseInterface $ promise , RequestInterface $ request )
5248 {
5349 $ this ->request = $ request ;
@@ -108,13 +104,8 @@ public function wait($unwrap = true)
108104
109105 /**
110106 * Converts a Guzzle exception into an Httplug exception.
111- *
112- * @param GuzzleExceptions\GuzzleException $exception
113- * @param RequestInterface $request
114- *
115- * @return HttplugException
116107 */
117- private function handleException (GuzzleExceptions \GuzzleException $ exception , RequestInterface $ request )
108+ private function handleException (GuzzleExceptions \GuzzleException $ exception , RequestInterface $ request ): HttplugException
118109 {
119110 if ($ exception instanceof GuzzleExceptions \SeekException) {
120111 return new HttplugException \RequestException ($ exception ->getMessage (), $ request , $ exception );
You can’t perform that action at this time.
0 commit comments