Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Nov 18, 2023
1 parent e95f866 commit 13c3d93
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ protected function getMessagesPostedSince(\DateTimeInterface $datetime)

public function postPersist(Message $message): void
{
if (null === $message->getAuthorEmail()) {
if (filter_var($message->getAuthorEmail(), \FILTER_VALIDATE_EMAIL)) {

Check failure on line 62 in packages/conversation/src/Service/NewMessageMailNotifier.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1 - prefer-stable - ubuntu-latest

Only booleans are allowed in an if condition, string|false given.

Check failure on line 62 in packages/conversation/src/Service/NewMessageMailNotifier.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1 - prefer-stable - ubuntu-latest

Only booleans are allowed in an if condition, string|false given.
// $this->send();

return;
Expand Down

0 comments on commit 13c3d93

Please sign in to comment.