Skip to content

Commit 3356d7d

Browse files
committed
improve RcsValidator
1 parent 09f4394 commit 3356d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resource/Rcs/RcsValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function text(): void {
8686

8787
$length = strlen($text);
8888

89-
if (null === $text || !$length) {
89+
if (!$length) {
9090
throw new InvalidRequiredArgumentException(
9191
'You cannot send an empty message.');
9292
}
@@ -96,7 +96,7 @@ public function text(): void {
9696
public function to(): void {
9797
$to = $this->params->getTo();
9898

99-
if (null === $to || '' === $to) {
99+
if ('' === $to) {
100100
throw new InvalidRequiredArgumentException(
101101
'You cannot send a message without specifying a recipient.');
102102
}

0 commit comments

Comments
 (0)