Eduardo Gulias Davis
8e526a57c1
Message-id validator ( #290 )
...
* scafolding for MessageID validation
* Improve domain valid tokens
* Improved EmailParser to remove leaked logic. User of lexer recorder within parsers.
* MessageIDParser passing tests.
* change left for right, which is the right one
* psaml errors
* Better naming
* comments are not allowed in IDLeft for message-id
* Suppress psalm inheritance over tokens and dependencies
* Update src/Parser.php
Co-authored-by: Alexander M. Turek <me@derrabus.de >
* Update src/Parser.php
Co-authored-by: Alexander M. Turek <me@derrabus.de >
* improve parser from comments
Co-authored-by: Alexander M. Turek <me@derrabus.de >
2021-03-06 18:29:10 +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
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
Eduardo Gulias Davis
e5bdc237eb
Fixing Psalm erros
2020-10-03 17:43:06 +02:00
Eduardo Gulias Davis
73dc53df0d
Adding Changelog to remember BC breacking changes!
2020-10-03 17:39:27 +02:00
Eduardo Gulias Davis
5455d688c1
Part extraction improvement with lexer recording. Reported in #181
2020-10-03 17:37:57 +02:00
Eduardo Gulias Davis
ce879d7d10
Fix Space after end of domain. #217
2020-09-26 16:30:00 +02:00
Eduardo Gulias Davis
e272a25e47
Test spoof emails in travis
2020-09-20 15:24:15 +02:00
Eduardo Gulias Davis
2964536758
Added tests for valid plus warnings
2020-09-20 15:20:50 +02:00
Eduardo Gulias Davis
49b18fbcfc
Remove deprecation, comes from #257
2020-09-19 16:37:33 +02:00
Eduardo Gulias Davis
e72f606ae3
Typo
2020-09-19 16:35:09 +02:00
Eduardo Gulias Davis
98ebd59e53
Psalm erros fixed
2020-09-19 16:33:03 +02:00
Eduardo Gulias Davis
9512ac0b19
Psalm errors plus test for MultipleErrors reason and improved multi validation tests
2020-09-19 16:17:03 +02:00
Eduardo Gulias Davis
8405dcde01
Added invalidtaion for backslash in domain literal and test data
2020-09-19 15:50:04 +02:00
Eduardo Gulias Davis
b76c116718
Psaml run 1
2020-09-12 16:55:59 +02:00
Eduardo Gulias Davis
afd6bcba6a
polish
2020-09-12 16:42:19 +02:00
Eduardo Gulias Davis
044b1d55d9
Return type in signature
2020-09-12 16:41:06 +02:00