Skip to content

Commit

Permalink
Merge pull request #2997 from evgsavosin/evgsavosin-patch-1
Browse files Browse the repository at this point in the history
Add hints to methods
  • Loading branch information
l0gicgate committed Sep 17, 2020
2 parents 3027cbe + 80c088c commit 9652ea4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Slim/Error/AbstractErrorRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ abstract class AbstractErrorRenderer implements ErrorRendererInterface
*/
protected $defaultErrorDescription = 'A website error has occurred. Sorry for the temporary inconvenience.';

/**
* @param Throwable $exception
* @return string
*/
protected function getErrorTitle(Throwable $exception): string
{
if ($exception instanceof HttpException) {
Expand All @@ -41,6 +45,10 @@ protected function getErrorTitle(Throwable $exception): string
return $this->defaultErrorTitle;
}

/**
* @param Throwable $exception
* @return string
*/
protected function getErrorDescription(Throwable $exception): string
{
if ($exception instanceof HttpException) {
Expand Down

0 comments on commit 9652ea4

Please sign in to comment.