specify error message

This commit is contained in:
Daniel Seifert 2022-07-01 16:10:53 +02:00
parent c502926daf
commit 18d9748e64
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ abstract class Request implements RequestInterface
Assert::that($this->getOptions())->isArray();
Assert::that( $this->getRecipientsList() )->isInstanceOf(RecipientsList::class)->notEmpty();
Assert::that( $this->getRecipientsList()->getRecipients())->notEmpty();
Assert::that( $this->getRecipientsList()->getRecipients())->notEmpty('request must contain a recipient');
Assert::thatAll( $this->getRecipientsList() )->isInstanceOf( Recipient::class )->notEmpty();
// optional properties