Skip to content

Commit

Permalink
fixes some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aemaddin committed Dec 3, 2019
1 parent c23c969 commit 4bcab13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/KnetResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class KnetResponseHandler extends KnetClient
{
private $result = [];
private $error = [];
private $result = null;
private $error = null;
private $error_code = '';

public function __construct()
Expand Down Expand Up @@ -43,7 +43,7 @@ public function toArray()

public function hasErrors()
{
return count($this->error);
return !is_null($this->error);
}

public function error()
Expand Down

0 comments on commit 4bcab13

Please sign in to comment.