File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -342,10 +342,14 @@ public static function getState($key)
342
342
/**
343
343
* Set a callback to be executed when an error occurs.
344
344
*
345
+ * The callback receives the error as the first and only parameter. The return value of the callback gets ignored.
346
+ * If it can't handle the error, it MUST throw the error. Errors thrown by the callback or during its invocation
347
+ * MUST be thrown into the `run` loop and stop the driver.
348
+ *
345
349
* Subsequent calls to this method will overwrite the previous handler.
346
350
*
347
- * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute; null will clear the current
348
- * handler.
351
+ * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute. ` null` will clear the
352
+ * current handler.
349
353
*
350
354
* @return void
351
355
*/
Original file line number Diff line number Diff line change @@ -227,6 +227,10 @@ final public function getState($key)
227
227
/**
228
228
* Set a callback to be executed when an error occurs.
229
229
*
230
+ * The callback receives the error as the first and only parameter. The return value of the callback gets ignored.
231
+ * If it can't handle the error, it MUST throw the error. Errors thrown by the callback or during its invocation
232
+ * MUST be thrown into the `run` loop and stop the driver.
233
+ *
230
234
* Subsequent calls to this method will overwrite the previous handler.
231
235
*
232
236
* @param callable(\Throwable|\Exception $error)|null $callback The callback to execute. `null` will clear the
You can’t perform that action at this time.
0 commit comments