We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee117ed commit 1eb679cCopy full SHA for 1eb679c
player-counter/src/Models/GameQuery.php
@@ -51,8 +51,8 @@ public function runQuery(Server $server): ?array
51
if ($this->query_port_variable) {
52
$variableValue = $server->variables()->where('env_variable', $this->query_port_variable)->first()?->server_value;
53
54
- if ($variableValue && is_int($variableValue)) {
55
- $port = $variableValue;
+ if ($variableValue && is_numeric($variableValue)) {
+ $port = (int) $variableValue;
56
}
57
58
0 commit comments