Fix phpstan errors

This commit is contained in:
Oliver Davies 2025-06-21 00:42:49 +01:00
parent 9abf64b504
commit addfe15e26
3 changed files with 8 additions and 1 deletions

View file

@ -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;
}