Skip to content

Commit

Permalink
fix Undefined property: stdClass::$is_valid in src/MailgunValidator.php
Browse files Browse the repository at this point in the history
- fixes overint#6
  • Loading branch information
daryledesilva committed Mar 31, 2020
1 parent b653d9b commit b0cc80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailgunValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function queryMailgun($email)
public function validate($email)
{
$ret = $this->queryMailgun($email);
return $ret->is_valid === true && $ret->mailbox_verification !== false;
return property_exists($ret, 'is_valid') && $ret->is_valid === true && $ret->mailbox_verification !== false;
}

/**
Expand Down

0 comments on commit b0cc80d

Please sign in to comment.