Skip to content

Commit e74b50d

Browse files
committed
Template params can only have one argument
The fact that a promise can also be rejected with a Throwable and/or Exception is implied and there is no need to also define that here. Refs: reactphp/promise#223
1 parent 2de95d5 commit e74b50d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Query/ExecutorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface ExecutorInterface
3636
* ```
3737
*
3838
* @param Query $query
39-
* @return \React\Promise\PromiseInterface<\React\Dns\Model\Message,\Exception>
39+
* @return \React\Promise\PromiseInterface<\React\Dns\Model\Message>
4040
* resolves with response message on success or rejects with an Exception on error
4141
*/
4242
public function query(Query $query);

src/Resolver/ResolverInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface ResolverInterface
3939
* ```
4040
*
4141
* @param string $domain
42-
* @return \React\Promise\PromiseInterface<string,\Exception>
42+
* @return \React\Promise\PromiseInterface<string>
4343
* resolves with a single IP address on success or rejects with an Exception on error.
4444
*/
4545
public function resolve($domain);
@@ -87,7 +87,7 @@ public function resolve($domain);
8787
* ```
8888
*
8989
* @param string $domain
90-
* @return \React\Promise\PromiseInterface<array,\Exception>
90+
* @return \React\Promise\PromiseInterface<array>
9191
* Resolves with all record values on success or rejects with an Exception on error.
9292
*/
9393
public function resolveAll($domain, $type);

0 commit comments

Comments
 (0)