Fix command sending error handling and bad assertion order

This commit is contained in:
Dane Everitt 2019-09-05 21:16:36 -07:00
parent ee0da206c1
commit 62cd03d684
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 20 additions and 15 deletions

View file

@ -71,7 +71,7 @@ abstract class DaemonRepository
*/
public function getHttpClient(array $headers = []): Client
{
Assert::isInstanceOf(Node::class, $this->node);
Assert::isInstanceOf($this->node, Node::class);
return new Client([
'verify' => $this->app->environment('production'),