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 () {