From 83ad4a47ea292afbdc41484d6572c5504d247883 Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Thu, 4 Jul 2024 09:07:36 +0200 Subject: [PATCH] fixes for #1810 --- src/Config/NotificationMailConfig.php | 1 + tests/Notifications/EventHandlerTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Config/NotificationMailConfig.php b/src/Config/NotificationMailConfig.php index 87ffca16..8f9bce7c 100644 --- a/src/Config/NotificationMailConfig.php +++ b/src/Config/NotificationMailConfig.php @@ -7,6 +7,7 @@ class NotificationMailConfig extends Data { + /** @param string|array $to */ protected function __construct( public string|array $to, public NotificationMailSenderConfig $from, diff --git a/tests/Notifications/EventHandlerTest.php b/tests/Notifications/EventHandlerTest.php index d482cfe0..6fe3a0a2 100644 --- a/tests/Notifications/EventHandlerTest.php +++ b/tests/Notifications/EventHandlerTest.php @@ -63,7 +63,7 @@ $config = NotificationMailConfig::fromArray($data); - expect($config->to)->toBe(['single@example.com']); + expect($config->to)->toBe('single@example.com'); }); it('will accept multiple email addresses', function () {