Skip to content

Commit

Permalink
Merge pull request #76 from Codeception/fix-type-error-in-failed
Browse files Browse the repository at this point in the history
Don't pass null to isBinaryData
  • Loading branch information
Naktibalda committed Feb 20, 2022
2 parents 6575989 + 536ba47 commit a67031a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Module/REST.php
Expand Up @@ -180,7 +180,7 @@ public function _inject(InnerBrowser $connection)

public function _failed(TestInterface $test, $fail)
{
if ($this->response === '' || $this->response === '0') {
if ($this->response === null || $this->response === '' || $this->response === '0') {
return;
}

Expand Down

0 comments on commit a67031a

Please sign in to comment.