Skip to content

Commit 4636999

Browse files
committed
Fix
1 parent 253b9e6 commit 4636999

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Process/Runnable/Runnable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace PHPStan\Process\Runnable;
44

5-
use React\Promise\PromiseInterface;
5+
use React\Promise\CancellablePromiseInterface;
66

77
interface 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

tests/PHPStan/Process/Runnable/RunnableStub.php

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

33
namespace PHPStan\Process\Runnable;
44

5+
use React\Promise\CancellablePromiseInterface;
56
use React\Promise\Deferred;
6-
use React\Promise\PromiseInterface;
77

88
class 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

0 commit comments

Comments
 (0)