Skip to content

Commit

Permalink
update PendingVisit
Browse files Browse the repository at this point in the history
  • Loading branch information
ousid committed Aug 21, 2022
1 parent 04cb311 commit ab330bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Empty file added phpstan-baseline.neon
Empty file.
14 changes: 14 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
includes:
- phpstan-baseline.neon

parameters:
level: 4
paths:
- src
- config
- database
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false

4 changes: 2 additions & 2 deletions src/PendingVisit.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(protected Model $model)
$this->isCrawler = $crawlerDetect->isCrawler();

// set daily intervals by default
$this->dailyIntervals();
$this->dailyIntervals(); // @phpstan-ignore-line
}

/**
Expand Down Expand Up @@ -127,7 +127,7 @@ public function __destruct()
// we don't need to log the visit
// because it's not a real visitor
if ($this->isCrawler) {
return null;
return;
}

$visit = $this->model
Expand Down

0 comments on commit ab330bb

Please sign in to comment.