php-mailgun-validation
php-mailgun-validation copied to clipboard
Undefined property: stdClass::$is_valid in src/MailgunValidator.php
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
$apiKeyand then I tried doing$mailgunValidator->validate('[email protected]') - I had a valid
$apiKeyand then I tried doing$mailgunValidator->validate('')