Skip to content

Undefined property: stdClass::$is_valid in src/MailgunValidator.php #6

@daryledesilva

Description

@daryledesilva

validate() is always counting on is_valid property of $ret which is a stdClass object.

I encountered two scenarios where this error:

PHP Notice:  Undefined property: stdClass::$is_valid in vendor/overint/php-mailgun-validation/src/MailgunValidator.php on line 61

is being thrown:

  • I had an invalid $apiKey and then I tried doing $mailgunValidator->validate('[email protected]')
  • I had a valid $apiKey and then I tried doing $mailgunValidator->validate('')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions