Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bcfd27

Browse files
committed
[Validator] - Bugfix for 18146 - EmailValidator cannot extract hostname if email contains multiple @ symbols
Changes from code review
1 parent 3886ec6 commit 8bcfd27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testHostnameIsProperlyParsed($hostnameAndEmail)
9999

100100
$this->assertEquals(
101101
$hostnameAndEmail[0],
102-
$method->invokeArgs($this->validator, [$hostnameAndEmail[1]])
102+
$method->invokeArgs($this->validator, array($hostnameAndEmail[1]))
103103
);
104104
}
105105

0 commit comments

Comments
 (0)