File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -388,12 +388,12 @@ public static function getState($key)
388388 * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute. `null` will clear the
389389 * current handler.
390390 *
391- * @return void
391+ * @return callable(\Throwable|\Exception $error)|null The previous handler, `null` if there was none.
392392 */
393393 public static function setErrorHandler (callable $ callback = null )
394394 {
395395 $ driver = self ::$ driver ?: self ::get ();
396- $ driver ->setErrorHandler ($ callback );
396+ return $ driver ->setErrorHandler ($ callback );
397397 }
398398
399399 /**
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ final public function getState($key)
246246 * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute. `null` will clear the
247247 * current handler.
248248 *
249- * @return void
249+ * @return callable(\Throwable|\Exception $error)|null The previous handler, `null` if there was none.
250250 */
251251 abstract public function setErrorHandler (callable $ callback = null );
252252
You can’t perform that action at this time.
0 commit comments