From 18d9748e64dcd34d5ff600c956fe5d1c27e1c3e2 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 1 Jul 2022 16:10:53 +0200 Subject: [PATCH] specify error message --- src/Request/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Request/Request.php b/src/Request/Request.php index f623709..f5b2e92 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -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