MessageBuilder > addBccRecipient > Make $variables optional (#485)

This way, it's the same as `addToRecipient` and `addCcRecipient`
This commit is contained in:
Ruud Kamphuis 2018-09-07 22:37:59 +02:00 committed by Tobias Nyholm
parent a4aba16061
commit 3fb0f8210e

View File

@ -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');