Skip to content

Commit

Permalink
add data type to class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
zeuxisoo committed Feb 2, 2022
1 parent 0ca8cf5 commit 634faa3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Zeuxisoo/Whoops/Slim/WhoopsGuard.php
Expand Up @@ -12,9 +12,9 @@

class WhoopsGuard {

protected $settings = [];
protected $request = null;
protected $handlers = [];
protected array $settings = [];
protected ?ServerRequestInterface $request = null;
protected array $handlers = [];

/**
* Instance the whoops guard object
Expand Down Expand Up @@ -97,7 +97,7 @@ public function install(): ?WhoopsRun {
$whoops->pushHandler($prettyPageHandler);

// Enable JsonResponseHandler when request is AJAX
if (Misc::isAjaxRequest() === true){
if (Misc::isAjaxRequest() === true) {
$whoops->pushHandler(new JsonResponseHandler());
}

Expand Down

0 comments on commit 634faa3

Please sign in to comment.