Skip to content

Commit

Permalink
Fixed error with expected bool value (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko authored Apr 8, 2023
1 parent 693ac10 commit 897e799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Api/MailingList/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function createMultiple(string $list, array $members, $upsert = false)

break;
case 'subscribed':
Assert::oneOf($value, ['yes', 'no']);
Assert::oneOf($value, ['yes', 'no', true, false]);

break;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/MailingList/MemberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function testCreateMultipleInvalidMemberArgument()
[
'address' => '[email protected]',
'name' => 'Billy',
'subscribed' => true,
'subscribed' => 123,
],
];

Expand Down

0 comments on commit 897e799

Please sign in to comment.