File tree Expand file tree Collapse file tree
tests/PHPStan/Process/Runnable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace PHPStan \Process \Runnable ;
44
5- use React \Promise \PromiseInterface ;
5+ use React \Promise \CancellablePromiseInterface ;
66
77interface Runnable
88{
99
1010 public function getName (): string ;
1111
12- public function run (): PromiseInterface ;
12+ public function run (): CancellablePromiseInterface ;
1313
1414 public function cancel (): void ;
1515
Original file line number Diff line number Diff line change 22
33namespace PHPStan \Process \Runnable ;
44
5+ use React \Promise \CancellablePromiseInterface ;
56use React \Promise \Deferred ;
6- use React \Promise \PromiseInterface ;
77
88class RunnableStub implements Runnable
99{
@@ -30,8 +30,9 @@ public function finish(): void
3030 $ this ->deferred ->resolve ();
3131 }
3232
33- public function run (): PromiseInterface
33+ public function run (): CancellablePromiseInterface
3434 {
35+ /** @var CancellablePromiseInterface */
3536 return $ this ->deferred ->promise ();
3637 }
3738
You can’t perform that action at this time.
0 commit comments