We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e7d4f commit 2f27bceCopy full SHA for 2f27bce
src/Connection/Responses/TaggedResponse.php
@@ -39,14 +39,14 @@ public function data(): array
39
*/
40
public function successful(): bool
41
{
42
- return $this->status()->value === 'OK';
+ return strtoupper($this->status()->value) === 'OK';
43
}
44
45
/**
46
* Determine if the response failed.
47
48
public function failed(): bool
49
50
- return in_array($this->status()->value, ['NO', 'BAD']);
+ return in_array(strtoupper($this->status()->value), ['NO', 'BAD']);
51
52
0 commit comments