Skip to content

Commit 029fe3f

Browse files
committed
ExtendedPromiseInterface: type-hint for then()
This solves the problem that a PHP IDE always believes your then() method returns a PromiseInterface and not an ExtendedPromiseInterface
1 parent 29daf46 commit 029fe3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ExtendedPromiseInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace React\Promise;
44

5+
/**
6+
* @method ExtendedPromiseInterface then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null)
7+
*/
58
interface ExtendedPromiseInterface extends PromiseInterface
69
{
710
/**

0 commit comments

Comments
 (0)