mirror of
https://github.com/filp/whoops.git
synced 2026-09-12 18:56:22 +00:00
Merge pull request #701 from fujiwaraizuho/patch-1
Add types that appendHandler & prependHandler functions can take
This commit is contained in:
+4
-4
@@ -74,7 +74,7 @@ final class Run implements RunInterface
|
||||
/**
|
||||
* Explicitly request your handler runs as the last of all currently registered handlers.
|
||||
*
|
||||
* @param HandlerInterface $handler
|
||||
* @param callable|HandlerInterface $handler
|
||||
*
|
||||
* @return Run
|
||||
*/
|
||||
@@ -87,7 +87,7 @@ final class Run implements RunInterface
|
||||
/**
|
||||
* Explicitly request your handler runs as the first of all currently registered handlers.
|
||||
*
|
||||
* @param HandlerInterface $handler
|
||||
* @param callable|HandlerInterface $handler
|
||||
*
|
||||
* @return Run
|
||||
*/
|
||||
@@ -100,7 +100,7 @@ final class Run implements RunInterface
|
||||
* Register your handler as the last of all currently registered handlers (to be executed first).
|
||||
* Prefer using appendHandler and prependHandler for clarity.
|
||||
*
|
||||
* @param Callable|HandlerInterface $handler
|
||||
* @param callable|HandlerInterface $handler
|
||||
*
|
||||
* @return Run
|
||||
*
|
||||
@@ -501,7 +501,7 @@ final class Run implements RunInterface
|
||||
/**
|
||||
* Resolves the giving handler.
|
||||
*
|
||||
* @param HandlerInterface $handler
|
||||
* @param callable|HandlerInterface $handler
|
||||
*
|
||||
* @return HandlerInterface
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user