Skip to content

Commit 47c739b

Browse files
committed
Minor changes.
1 parent d1a61a7 commit 47c739b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/CurlPromise.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ public function getState()
8383
/**
8484
* Wait for the promise to be fulfilled or rejected.
8585
*
86-
* When this method returns, the request has been resolved and the appropriate callable has
87-
* terminated.
86+
* When this method returns, the request has been resolved and the appropriate callable has terminated.
8887
*
89-
* @param bool $unwrap
88+
* When called with the unwrap option
9089
*
91-
* @return mixed
90+
* @param bool $unwrap Whether to return resolved value / throw reason or not
9291
*
93-
* @throws \Exception When the rejection reason is an exception.
92+
* @return \Psr\Http\Message\ResponseInterface|null Resolved value, null if $unwrap is set to false
93+
*
94+
* @throws \Http\Client\Exception The rejection reason.
9495
*/
9596
public function wait($unwrap = true)
9697
{
@@ -103,5 +104,6 @@ public function wait($unwrap = true)
103104

104105
return $this->core->getResponse();
105106
}
107+
return null;
106108
}
107109
}

0 commit comments

Comments
 (0)