Commit Graph

338 Commits

Author SHA1 Message Date
Eduardo Gulias Davis 01002fa052 update readme with new validator 2021-03-06 19:02:51 +01:00
Eduardo Gulias Davis 8edbe450f1 Merge branch 'message-id-validator' of github.com:egulias/EmailValidator into message-id-validator 2021-03-06 18:15:56 +01:00
Eduardo Gulias Davis c14d12ee17 improve parser from comments 2021-03-06 18:15:18 +01:00
Eduardo Gulias Davis 9320624d03 Merge branch '3.x' of github.com:egulias/EmailValidator into message-id-validator 2021-03-06 18:02:37 +01:00
Eduardo Gulias Davis ab22322b82 Update src/Parser.php
Co-authored-by: Alexander M. Turek <me@derrabus.de>
2021-03-06 17:53:57 +01:00
Eduardo Gulias Davis 44d20e3440 Update src/Parser.php
Co-authored-by: Alexander M. Turek <me@derrabus.de>
2021-03-06 17:53:37 +01:00
Eduardo Gulias Davis c5d6b8c16a Suppress psalm inheritance over tokens and dependencies 2021-02-28 17:52:27 +01:00
Eduardo Gulias Davis b03e9c935f comments are not allowed in IDLeft for message-id 2021-02-28 17:02:00 +01:00
Eduardo Gulias Davis 8fb7a88965 Better naming 2021-02-28 16:28:48 +01:00
Eduardo Gulias Davis 06579b96ca psaml errors 2021-02-28 16:26:08 +01:00
Eduardo Gulias Davis b79cd8f033 change left for right, which is the right one 2021-02-28 16:05:41 +01:00
Alies Lapatsin 451b438902 Use a safe way to execute dns_get_record (v3) (#286)
* #256 Bypass a PHP warning generated by @dns_get_record

The idea is to create a custom error handler for dns_get_record(), call dns_get_record and then restore the original error handler.
This way we can catch PHP warnings (e.g. "Warning: dns_get_record(): DNS Query failed" or "dns_get_record(): A temporary server error occurred." [ErrorException])

* #256 Make `UnableToGetDNSRecord` reason more testable

* #256 Suppress psalm’s false-positive error

see https://github.com/vimeo/psalm/issues/5134#issuecomment-782937791

* #256 Speed up tests: start from previously failed

* #256 Suppress psalm’s false-positive error

We don’t have a control over AbstractLexer and can’t specify array shape in this parent class
3.0.1
2021-02-28 15:27:57 +01:00
Eduardo Gulias Davis 07464f87c8 MessageIDParser passing tests. 2021-02-21 22:41:37 +01:00
Eduardo Gulias Davis b80f568f75 Improved EmailParser to remove leaked logic. User of lexer recorder within parsers. 2021-02-21 22:06:38 +01:00
Eduardo Gulias Davis 03a062e9e4 Improve domain valid tokens 2021-02-20 17:46:52 +01:00
Eduardo Gulias Davis 1cb5b2a402 scafolding for MessageID validation 2021-02-07 16:15:32 +01:00
Chun-Sheng, Li 04cad1a5ec Fix testing class name and namespaces (#284) 2021-02-07 15:42:56 +01:00
Eduardo Gulias Davis de0fb24141 Typo & correct RFC 2021-01-27 17:48:19 +01:00
Eduardo Gulias Davis c4d50e9cb4 Merge branch '3.x' of github.com:egulias/EmailValidator into 3.x 2021-01-17 15:57:32 +01:00
Eduardo Gulias Davis a7b66b5d5a Improve test coverage. Exclude Reasons from coverage, they are simple implementations of interface with only informative data 2021-01-17 15:57:03 +01:00
Eduardo Gulias Davis bcfcb883df Update CHANGELOG.md 2021-01-04 00:27:46 +01:00
Eduardo Gulias Davis 17e0e0f683 Add internet domains rfc to the list 2020-12-30 12:10:38 +01:00
Eduardo Gulias Davis 3a80c1b2c4 Adding release version 2020-12-30 11:46:34 +01:00
Eduardo Gulias Davis 6d5bca49cd Update CONTRIBUTING.md 2020-12-30 11:31:31 +01:00
Eduardo Gulias Davis 4254b5c77a Badges update 2020-12-29 16:55:55 +01:00
Eduardo Gulias Davis e5df72f45f Final info to changelog 3.0.0 2020-12-29 16:04:19 +01:00
Eduardo Gulias Davis 9b0483cfa3 PHP version policy 2020-12-29 15:57:20 +01:00
Eduardo Gulias Davis d0ea847f77 polish 2020-12-29 15:47:34 +01:00
Eduardo Gulias Davis 226b3fc479 Contributing to older versions 2020-12-29 15:45:49 +01:00
Eduardo Gulias Davis 61f858a16f Adding supported versions 2020-12-28 23:46:39 +01:00
Eduardo Gulias Davis 36ce88d7a9 Licence and .lock file 2020-12-28 12:06:05 +01:00
Eduardo Gulias Davis 819aa5500a removing no longer useful performance tests 2020-12-28 11:55:44 +01:00
Eduardo Gulias Davis cf3467be77 Documentation 2020-12-28 11:54:02 +01:00
Eduardo Gulias Davis 47129ff2a4 Polish 2020-12-28 10:56:22 +01:00
Eduardo Gulias Davis f72a7a1854 Port @vajexal #278 2020-12-28 10:40:47 +01:00
Nagesh A T 830c69eb4c Update CI files (#280)
PPC64le support for 3.0.0-dev branch

Co-authored-by: Eduardo Gulias Davis <eduardomgulias@gmail.com>
2020-12-28 09:41:43 +01:00
Kevin Krummnacker a9b0666ece Allow PHP 8 for the upcoming 3.0 (#275)
* bump version to allow php 8

* allow php 8 in travis

* add scrutinizer config
2020-12-19 15:45:43 +01:00
Eduardo Gulias Davis f00f069e3b 0 is an invalid email 2020-12-05 23:44:36 +01:00
Eduardo Gulias Davis cc695081fd new home for extra validations 2020-12-05 23:34:35 +01:00
Eduardo Gulias Davis a9d9083a9c new home for comment strategies 2020-12-05 23:33:00 +01:00
Eduardo Gulias Davis 790881fe75 improving types 2020-12-05 23:16:56 +01:00
Eduardo Gulias Davis 3dc66acf64 domain improvements over UTF16 and invalid ascii chars 2020-12-05 22:58:13 +01:00
Eduardo Gulias Davis c41a7b491e Improve domain validation 2020-11-14 23:29:20 +01:00
Eduardo Gulias Davis 740c0fe2ff Sponsors button 2020-11-14 16:55:20 +01:00
Eduardo Gulias Davis a7a69112df complaying to RFC1035 about domain names 2020-11-10 11:22:03 +01:00
Eduardo Gulias Davis e00a58a84e Label and domain name validation 2020-11-10 11:08:53 +01:00
Eduardo Gulias Davis c0e4efaeb0 Separation of tests to prepare for strictier domain validation 2020-11-10 10:36:53 +01:00
Eduardo Gulias Davis 729ecb2a35 Psalm fixes 2020-11-08 16:19:44 +01:00
Eduardo Gulias Davis 35c9db913f Port of comma in domain and README improvement. 2020-11-08 15:57:58 +01:00
Eduardo Gulias Davis cbe0d20542 fix #188, adding TLD warnings 2020-10-10 18:47:15 +02:00