Skip to content

Commit

Permalink
Ensure that $this->errors is an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworley authored Jun 18, 2019
1 parent 3d19fa9 commit 92d37da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LagoonResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function errors() {
* {@inheritdoc}
*/
public function hasErrors() {
return (bool) count($this->errors);
return is_array($this->errors) && (bool) count($this->errors);
}

/**
Expand Down

0 comments on commit 92d37da

Please sign in to comment.