Fix command sending error handling and bad assertion order
This commit is contained in:
parent
ee0da206c1
commit
62cd03d684
5 changed files with 20 additions and 15 deletions
|
@ -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 a new issue