Open GoogleCodeExporter opened 8 years ago
I agree that a static method is better (there being no reason to instantiate an
EmailAddressValidator). Why not rename the method to "is_valid($email)"?
Original comment by ethan.sherrie
on 22 Feb 2010 at 4:18
Agreed. is_valid would be better. Instance approach can be usefull if there
would be any additional configuration. For example, allow IP address or not,
allow IDN or not, perform DNS lookup or not, perform black list check, or not.
Original comment by witold.b...@gmail.com
on 30 Jun 2010 at 1:34
Original issue reported on code.google.com by
schizoduckie
on 30 Jun 2009 at 7:41Attachments: