@@ -116,12 +116,10 @@ public function upsertResource(string $uri, array $uriParameters = [], array $bo
116116 * @param string $uri URI of the resource
117117 * @param array $uriParameters URI parameters of the resource
118118 * @param array $body Body of the request
119- * @param ?callable $onSuccess Callback in case of success
120- * @param ?callable $onFail Callback in case of fail
121119 *
122120 * @throws HttpException If the request failed.
123121 *
124- * @return Promise
122+ * @return PromiseInterface
125123 */
126124 public function upsertAsyncResource (
127125 string $ uri ,
@@ -146,8 +144,6 @@ public function upsertAndReturnResource(string $uri, array $uriParameters = [],
146144 * @param string $uri URI of the resource
147145 * @param array $uriParameters URI parameters of the resource
148146 * @param array $body Body of the request
149- * @param ?callable $onSuccess Callback in case of success
150- * @param ?callable $onFail Callback in case of fail
151147 *
152148 * @throws HttpException If the request failed.
153149 *
@@ -179,13 +175,11 @@ public function upsertStreamResourceList(string $uri, array $uriParameters = [],
179175 * @param array $uriParameters URI parameters of the resource
180176 * @param array|StreamInterface $resources array of resources to create or update.
181177 * You can pass your own StreamInterface implementation as well.
182- * @param ?callable $onSuccess Callback in case of success
183- * @param ?callable $onFail Callback in case of fail
184178 *
185179 * @throws HttpException If the request failed.
186180 * @throws InvalidArgumentException If the resources or any part thereof are invalid.
187181 *
188- * @return Promise returns a Promise
182+ * @return PromiseInterface returns a Promise
189183 */
190184 public function upsertAsyncStreamResourceList (
191185 string $ uri ,
@@ -212,13 +206,11 @@ public function upsertJsonResourceList(string $uri, array $uriParameters = [], a
212206 * @param string $uri URI of the resource
213207 * @param array $uriParameters URI parameters of the resource
214208 * @param array $resources array of resources to create or update.
215- * @param ?callable $onSuccess Callback in case of success
216- * @param ?callable $onFail Callback in case of fail
217209 *
218210 * @throws HttpException If the request failed.
219211 * @throws InvalidArgumentException If the resources or any part thereof are invalid.
220212 *
221- * @return Promise
213+ * @return PromiseInterface
222214 */
223215 public function upsertAsyncJsonResourceList (
224216 string $ uri ,
0 commit comments