mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 05:13:45 +02:00
Fix command sending error handling and bad assertion order
This commit is contained in:
@@ -17,7 +17,7 @@ class DaemonServerRepository extends DaemonRepository
|
||||
*/
|
||||
public function getDetails(): array
|
||||
{
|
||||
Assert::isInstanceOf(Server::class, $this->server);
|
||||
Assert::isInstanceOf($this->server, Server::class);
|
||||
|
||||
try {
|
||||
$response = $this->getHttpClient()->get(
|
||||
|
||||
Reference in New Issue
Block a user