From 814cdd0be2a31e9e12ac421387e8fa38abe48433 Mon Sep 17 00:00:00 2001 From: Rias Date: Thu, 2 May 2024 10:24:12 +0200 Subject: [PATCH] Allow array as value --- composer.json | 2 +- src/Concerns/UsesMailcoachMail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2654df1..f3ad13b 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^8.1", "illuminate/contracts": "^9.42|^10.0|^11.0", "spatie/laravel-package-tools": "^1.13.7", - "spatie/mailcoach-mailer": "^1.1" + "spatie/mailcoach-mailer": "^1.2" }, "require-dev": { "laravel/pint": "^1.2.1", diff --git a/src/Concerns/UsesMailcoachMail.php b/src/Concerns/UsesMailcoachMail.php index 653a6e4..a501046 100644 --- a/src/Concerns/UsesMailcoachMail.php +++ b/src/Concerns/UsesMailcoachMail.php @@ -53,7 +53,7 @@ public function usingMailer(?string $mailer): self return $this; } - public function replacing(array|string $key, ?string $value = null): self + public function replacing(array|string $key, string|array|null $value = null): self { if (is_array($key)) { foreach ($key as $realKey => $value) {