Skip to content

Commit

Permalink
refactor: Corrigindo nome do método hasError
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanches committed Jun 18, 2024
1 parent 4cc6fc7 commit d9cb8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/BlingResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function factory(ResponseInterface $response)
);
}

public function hassError(): bool
public function hasError(): bool
{
if ($this->statusCode >= 200 && $this->statusCode < 300) {
return false;
Expand Down Expand Up @@ -63,7 +63,7 @@ public function getStatusCode(): int

public function export(): array
{
if ($this->hassError()) {
if ($this->hasError()) {
return $this->getError();
}

Expand Down

0 comments on commit d9cb8f5

Please sign in to comment.