Skip to content

Commit 34cdf71

Browse files
committed
Better variable naming
1 parent d45bc6f commit 34cdf71

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Promise.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ final class Promise implements PromiseInterface
99

1010
private $handlers = [];
1111

12-
private $requiredCancelRequests = 0;
12+
private $remainingCancelRequests = 0;
1313

1414
public function __construct(callable $resolver, callable $canceller = null)
1515
{
@@ -27,10 +27,10 @@ public function then(callable $onFulfilled = null, callable $onRejected = null)
2727
return new static($this->resolver($onFulfilled, $onRejected));
2828
}
2929

30-
$this->requiredCancelRequests++;
30+
$this->remainingCancelRequests++;
3131

3232
return new static($this->resolver($onFulfilled, $onRejected), function () {
33-
if (--$this->requiredCancelRequests > 0) {
33+
if (--$this->remainingCancelRequests > 0) {
3434
return;
3535
}
3636

0 commit comments

Comments
 (0)