Skip to content

Commit

Permalink
Update src/DnsHelper.php
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
  • Loading branch information
vjik and samdark authored Aug 6, 2024
1 parent cfbd49e commit 9cad752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DnsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function acceptsEmails(string $hostnameOrEmail): bool
{
if (strpos($hostnameOrEmail, '@') !== false) {
/**
* @psalm-suppress PossiblyUndefinedArrayOffset In this cse `explode()` always returns array with 2 elements.
* @psalm-suppress PossiblyUndefinedArrayOffset In this case `explode()` always returns an array with 2 elements.
*/
[, $hostnameOrEmail] = explode('@', $hostnameOrEmail, 2);

Check warning on line 76 in src/DnsHelper.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ /** * @psalm-suppress PossiblyUndefinedArrayOffset In this case `explode()` always returns an array with 2 elements. */ - [, $hostnameOrEmail] = explode('@', $hostnameOrEmail, 2); + [, $hostnameOrEmail] = explode('@', $hostnameOrEmail, 3); } return self::existsMx($hostnameOrEmail) || self::existsA($hostnameOrEmail); } }
}
Expand Down

0 comments on commit 9cad752

Please sign in to comment.