Skip to content

Commit

Permalink
fixes for #1810
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jul 4, 2024
1 parent daf4afe commit 83ad4a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Config/NotificationMailConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class NotificationMailConfig extends Data
{
/** @param string|array<string> $to */
protected function __construct(
public string|array $to,
public NotificationMailSenderConfig $from,
Expand Down
2 changes: 1 addition & 1 deletion tests/Notifications/EventHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

$config = NotificationMailConfig::fromArray($data);

expect($config->to)->toBe(['[email protected]']);
expect($config->to)->toBe('[email protected]');
});

it('will accept multiple email addresses', function () {
Expand Down

0 comments on commit 83ad4a4

Please sign in to comment.