Skip to content

Commit

Permalink
Fix this minor text mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed Mar 31, 2019
1 parent 27a4c2e commit 412449c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MasterServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getServers($keywords = "empty full", $timeout = 1)
}

if (!is_int($timeout)) {
throw new \InvalidArgumentException('Protocol must be a NUMBER!');
throw new \InvalidArgumentException('Timeout must be a NUMBER!');
}

if ($socket = fsockopen('udp://' . $this->address, $this->port)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getInfo($timeout = 1)
}

if (!is_int($timeout)) {
throw new \InvalidArgumentException('Protocol must be a NUMBER!');
throw new \InvalidArgumentException('Timeout must be a NUMBER!');
}

if ($socket = fsockopen('udp://' . $this->address, $this->port)) {
Expand Down Expand Up @@ -115,7 +115,7 @@ public function getStatus($timeout = 1)
}

if (!is_int($timeout)) {
throw new \InvalidArgumentException('Protocol must be a NUMBER!');
throw new \InvalidArgumentException('Timeout must be a NUMBER!');
}

if ($socket = fsockopen('udp://' . $this->address, $this->port)) {
Expand Down

0 comments on commit 412449c

Please sign in to comment.