Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 871df65

Browse files
committed
CS
1 parent dca2e6e commit 871df65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Promise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function wait($unwrap = true)
9595
$this->promise->wait(false);
9696

9797
if ($unwrap) {
98-
if ($this->getState() == self::REJECTED) {
98+
if (self::REJECTED == $this->getState()) {
9999
throw $this->exception;
100100
}
101101

0 commit comments

Comments
 (0)