mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
MessageBuilder > addBccRecipient > Make $variables optional (#485)
This way, it's the same as `addToRecipient` and `addCcRecipient`
This commit is contained in:
parent
a4aba16061
commit
3fb0f8210e
@ -190,7 +190,7 @@ class MessageBuilder
|
|||||||
*
|
*
|
||||||
* @throws TooManyRecipients
|
* @throws TooManyRecipients
|
||||||
*/
|
*/
|
||||||
public function addBccRecipient($address, array $variables)
|
public function addBccRecipient($address, array $variables = [])
|
||||||
{
|
{
|
||||||
if ($this->counters['recipients']['bcc'] > self::RECIPIENT_COUNT_LIMIT) {
|
if ($this->counters['recipients']['bcc'] > self::RECIPIENT_COUNT_LIMIT) {
|
||||||
throw TooManyRecipients::create('bcc');
|
throw TooManyRecipients::create('bcc');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user