Skip to content

Commit 1eb679c

Browse files
committed
fix phpstan
1 parent ee117ed commit 1eb679c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

player-counter/src/Models/GameQuery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public function runQuery(Server $server): ?array
5151
if ($this->query_port_variable) {
5252
$variableValue = $server->variables()->where('env_variable', $this->query_port_variable)->first()?->server_value;
5353

54-
if ($variableValue && is_int($variableValue)) {
55-
$port = $variableValue;
54+
if ($variableValue && is_numeric($variableValue)) {
55+
$port = (int) $variableValue;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)