Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgniecki committed Jul 22, 2024
1 parent d901f90 commit dbb3c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ConsoleInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
interface ConsoleInterface
{
public function sendCommand(string $command): bool;
public function sendCommand($command): bool;
public function getResponse(): ?string;
public function isConnected(): bool;
}
2 changes: 1 addition & 1 deletion src/Ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Ping implements ServerInfo
public function __construct(string $host, int $port = 25565, bool $oldPre17 = false, int $timeout = 3, ?Object $ping = null)
{
if (!$ping instanceof AbstractPing) {
$ping = ($oldPre17)? new \DevLancer\MinecraftStatus\Ping($host, $port, $timeout) : new PingPreOld17($host, $port, $timeout);
$ping = ($oldPre17)? new PingPreOld17($host, $port, $timeout) : new \DevLancer\MinecraftStatus\Ping($host, $port, $timeout);
}

$this->ping = $ping;
Expand Down

0 comments on commit dbb3c84

Please sign in to comment.