File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments