Skip to content

Commit 0549f18

Browse files
committed
Ignore analysis errors
1 parent 35709b9 commit 0549f18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Visits.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function __construct(VisitsConfig $config, $db = null)
5959
throw VisitsException::forMissingDatabaseTable($table);
6060
}
6161

62+
// @phpstan-ignore-next-line
6263
if (empty($this->config->trackingMethod)) {
6364
throw VisitsException::forNoTrackingMethod();
6465
}
@@ -89,7 +90,7 @@ public function record()
8990

9091
// add session/server specifics
9192
$visit->session_id = $this->session->session_id;
92-
$visit->user_id = $this->session->{$this->config->userSource} ?? null;
93+
$visit->user_id = $this->session->{$this->config->userSource} ?? null; // @phpstan-ignore-line
9394
$visit->user_agent = $_SERVER['HTTP_USER_AGENT'] ?? '';
9495
$visit->ip_address = $_SERVER['REMOTE_ADDR'] ?? null;
9596

0 commit comments

Comments
 (0)