@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->loop = $loop; |
71 | 71 | $this->promise = $promise->then( |
72 | 72 | /** |
73 | - * @param ResponseInterface|null $response |
|
73 | + * @param PromiseInterface $response |
|
74 | 74 | */ |
75 | 75 | function (?ResponseInterface $response): ResponseInterface { |
76 | 76 | $this->response = $response; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | return $response; |
80 | 80 | }, |
81 | 81 | /** |
82 | - * @param mixed $reason |
|
82 | + * @param PromiseInterface $reason |
|
83 | 83 | */ |
84 | 84 | function ($reason): void { |
85 | 85 | $this->state = self::REJECTED; |