mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
Email Validation does not return a key name, just the resource itself
This commit is contained in:
parent
3cf9aca200
commit
1fb0d0bbc5
@ -33,9 +33,9 @@ final class ValidateResponse implements ApiResponse
|
||||
public static function create(array $data)
|
||||
{
|
||||
$message = isset($data['message']) ? $data['message'] : null;
|
||||
$route = isset($data['route']) ? EmailValidation::create($data['emailValidation']) : null;
|
||||
$emailValidation = EmailValidation::create($data);
|
||||
|
||||
return new self($message, $route);
|
||||
return new self($message, $emailValidation);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user