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()
83
83
/**
84
84
* Wait for the promise to be fulfilled or rejected.
85
85
*
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.
88
87
*
89
- * @param bool $ unwrap
88
+ * When called with the unwrap option
90
89
*
91
- * @return mixed
90
+ * @param bool $unwrap Whether to return resolved value / throw reason or not
92
91
*
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.
94
95
*/
95
96
public function wait ($ unwrap = true )
96
97
{
@@ -103,5 +104,6 @@ public function wait($unwrap = true)
103
104
104
105
return $ this ->core ->getResponse ();
105
106
}
107
+ return null ;
106
108
}
107
109
}
You can’t perform that action at this time.
0 commit comments