Skip to content

Commit

Permalink
Merge pull request #97 from wazum/bugfix/96-fix-strpos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesking56 authored Aug 29, 2022
2 parents 992b459 + 8ed78f8 commit cf82ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module/MailCatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function lastMessageFrom(string $address): \Codeception\Util\Email
}

foreach ($messages as $message) {
if (strpos($message['sender'], $address)) {
if (strpos($message['sender'], $address) !== false) {
$ids[] = $message['id'];
}

Expand Down

0 comments on commit cf82ea6

Please sign in to comment.