mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-04-19 16:50:55 +00:00
Psalm fix
This commit is contained in:
parent
8d8f6510d2
commit
a3b0739f2b
1 changed files with 4 additions and 7 deletions
|
@ -29,12 +29,11 @@ class Mailboxes extends HttpApi
|
|||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function create(string $domain, array $parameters)
|
||||
public function create(string $domain, array $parameters = [])
|
||||
{
|
||||
Assert::stringNotEmpty($domain);
|
||||
Assert::isArray($parameters);
|
||||
Assert::keyExists($parameters ,'mailbox');
|
||||
Assert::keyExists($parameters ,'password');
|
||||
Assert::keyExists($parameters, 'mailbox');
|
||||
Assert::keyExists($parameters, 'password');
|
||||
Assert::minLength($parameters['password'], self::MIN_PASSWORD_LENGTH);
|
||||
|
||||
$response = $this->httpPost(sprintf('/v3/%s/mailboxes', $domain), $parameters);
|
||||
|
@ -53,7 +52,6 @@ class Mailboxes extends HttpApi
|
|||
public function show(string $domain, array $parameters = [])
|
||||
{
|
||||
Assert::stringNotEmpty($domain);
|
||||
Assert::isArray($parameters);
|
||||
|
||||
$response = $this->httpGet(sprintf('/v3/%s/mailboxes', $domain), $parameters);
|
||||
|
||||
|
@ -63,7 +61,7 @@ class Mailboxes extends HttpApi
|
|||
/**
|
||||
* @param string $domain
|
||||
* @param string $mailbox
|
||||
* @param array $parameters
|
||||
* @param array $parameters
|
||||
*
|
||||
* @return UpdateResponse
|
||||
*
|
||||
|
@ -73,7 +71,6 @@ class Mailboxes extends HttpApi
|
|||
{
|
||||
Assert::stringNotEmpty($domain);
|
||||
Assert::stringNotEmpty($mailbox);
|
||||
Assert::isArray($parameters);
|
||||
|
||||
$response = $this->httpPut(sprintf('/v3/%s/mailboxes/%s', $domain, $mailbox), $parameters);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue