Skip to content

Commit 23eaa09

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 23eaa09

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()
7+
*/
58
interface ExtendedPromiseInterface extends PromiseInterface
69
{
710
/**

0 commit comments

Comments
 (0)