mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-04-02 20:56:18 +03:00
Email Validation does not return a key name, just the resource itself
This commit is contained in:
parent
3cf9aca200
commit
1fb0d0bbc5
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue