X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/321a4594219a39e9d10b601168e139c1b926e373..refs/pull/5681/head:/app/Exceptions/PrettyException.php diff --git a/app/Exceptions/PrettyException.php b/app/Exceptions/PrettyException.php index d0aca5922..606085231 100644 --- a/app/Exceptions/PrettyException.php +++ b/app/Exceptions/PrettyException.php @@ -8,20 +8,8 @@ use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; class PrettyException extends Exception implements Responsable, HttpExceptionInterface { - /** - * @var ?string - */ - protected $subtitle = null; - - /** - * @var ?string - */ - protected $details = null; - - /** - * @var array - */ - protected $headers = []; + protected ?string $subtitle = null; + protected ?string $details = null; /** * Render a response for when this exception occurs. @@ -63,19 +51,9 @@ class PrettyException extends Exception implements Responsable, HttpExceptionInt /** * Get the desired HTTP headers for this exception. - * @return array */ public function getHeaders(): array { - return $this->headers; - } - - /** - * Set the desired HTTP headers for this exception. - * @param array $headers - */ - public function setHeaders(array $headers): void - { - $this->headers = $headers; + return []; } }