Skip to content

Commit

Permalink
include abstract methods
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Nov 10, 2019
1 parent 32d96bd commit b9c8bd7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ parameters:
- '/^Strict comparison using !== between (string|int) and null will always evaluate to true\./'
- '/^In method "Jgut\\Slim\\Exception\\Handler\\ErrorHandler::determineContentType", caught "Exception" must be rethrown\./'
- '/^Parameter #(4|5) \$.+ of class ErrorException constructor expects (string|int), (string|int)\|null given\.$/'
- '/^Method Whoops\\Handler\\Handler::set(Exception|Inspector|Run)\(\) has no return typehint specified\.$/'
20 changes: 20 additions & 0 deletions src/Whoops/Renderer/RendererTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,24 @@ final public function __invoke(\Throwable $exception, WhoopsInspector $inspector

return $this->handle() ?? Handler::DONE;
}

/**
* @param \Throwable $exception
*/
abstract public function setException($exception);

/**
* @param WhoopsInspector $inspector
*/
abstract public function setInspector(WhoopsInspector $inspector);

/**
* @param RunInterface $run
*/
abstract public function setRun(RunInterface $run);

/**
* @return int
*/
abstract public function handle();
}

0 comments on commit b9c8bd7

Please sign in to comment.