Fix phpstan errors
This commit is contained in:
parent
9abf64b504
commit
addfe15e26
3 changed files with 8 additions and 1 deletions
|
@ -22,7 +22,10 @@ readonly final class AddRandomCtaToDailyEmail {
|
|||
return;
|
||||
}
|
||||
|
||||
if (str_contains(haystack: $email->get('body')->value, needle: 'P.S.')) {
|
||||
$body = $email->get('body')->value;
|
||||
assert(is_string($body));
|
||||
|
||||
if (str_contains(haystack: $body, needle: 'P.S.')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue