Psalm fix

This commit is contained in:
Pawel Wasiluk 2021-08-19 14:26:59 +02:00 committed by David Garcia
parent 8d8f6510d2
commit a3b0739f2b

View File

@ -29,10 +29,9 @@ 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::minLength($parameters['password'], self::MIN_PASSWORD_LENGTH);
@ -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);
@ -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);