Commit Graph

268 Commits

Author SHA1 Message Date
Eduardo Gulias Davis 87ae1be93a Rename reason usage 2020-09-12 15:47:56 +02:00
Eduardo Gulias Davis 1f6c674510 Removed obsolete exceptions 2020-09-12 15:45:30 +02:00
Eduardo Gulias Davis bf39b372c1 update DNS validation 2020-09-12 15:43:58 +02:00
Eduardo Gulias Davis 3647ed6037 Fix #260 reporting an unhandled exception 2020-09-06 15:17:48 +02:00
Eduardo Gulias Davis e2e234c4d8 merging from master, folder structure change 2020-08-30 15:59:42 +02:00
Eduardo Gulias Davis 16ae245745 Removing exceptions 2020-08-23 16:07:16 +02:00
Eduardo Gulias Davis a70da00699 polishin 2020-08-23 16:03:00 +02:00
Eduardo Gulias Davis 6abedef7ae All tests green 2020-08-23 15:49:14 +02:00
Eduardo Gulias Davis caa29f4eb3 replacing exceptions 2020-08-19 10:27:10 +02:00
Eduardo Gulias Davis e3710e7c12 Fixed handling of errors and null type hint 2020-08-15 16:46:45 +02:00
Eduardo Gulias Davis 01bc948f11 Improved multiple validation 2020-08-15 15:47:06 +02:00
Eduardo Gulias Davis 97f1d27a29 Removed all warnings 2020-08-15 15:12:08 +02:00
Eduardo Gulias Davis d54bcf3f0a MultipleValidationWithAnd fixed 2020-08-09 23:17:41 +02:00
Eduardo Gulias Davis 896ff4a4d9 Staging: fixed DNS validation 2020-08-09 16:54:47 +02:00
Eduardo Gulias Davis 34d49c1694 refactored not allowed chars 2020-08-09 14:55:31 +02:00
BenHarris 840d5603eb Reimplement DNSCheckValidation (#250)
* Reimplement DNSCheckValidation to utilise get_dns_record and extend support for detection of Null MX records (RFC7505) and reserved, mDNS and private namespaces (RFC2606 & RFC6762)

* Change valid email tests to use github.com instead of example.com as example.com now (correctly) fails the tests due to the Null MX case

* Tweak to pass CI psalm issue

* Encapsulate dns check code. Simplify local and reserved domain checks. Switch test domain

* Set PHPDoc return type

* Use strict comparisons
2.1.19
2020-08-08 23:28:19 +02:00
Eduardo Gulias Davis 7ce529e03f Removed not needed control and added test case 2020-08-01 23:12:09 +02:00
Eduardo Gulias Davis 990ca1c1e3 Domain part validations 2020-08-01 23:03:58 +02:00
Eduardo Gulias Davis c8e7f01dfb Parsing comments, at last! 2020-07-26 16:15:50 +02:00
Remi Collet feba9587ec Fix paths for tests (#244) 2020-07-23 23:58:29 +02:00
Viktor Szépe 5568c52464 Fix links and formatting in README (#252) 2020-07-23 23:49:55 +02:00
Simon Schaufelberger cfa3d44471 Move files in typical src and tests folder (#242)
* Move files in typical src and tests folder

* Fix psalm error
2.1.18
2020-06-16 22:11:17 +02:00
Eduardo Gulias Davis 61798f9f1b NoDomainPart reason 2020-06-13 15:59:33 +02:00
Eduardo Gulias Davis 138fa69163 Test for hypen 2020-05-24 15:17:36 +02:00
Eduardo Gulias Davis 5b045d96ca Starting to transform domain part 2020-05-24 15:10:50 +02:00
Eduardo Gulias Davis 302b98bf41 FWS parser 2020-05-23 16:21:45 +02:00
Eduardo Gulias Davis 3145070028 function simplification 2020-05-23 15:39:27 +02:00
Eduardo Gulias Davis ad92070629 Concecutive dots and invalid token 2020-05-23 15:27:00 +02:00
Eduardo Gulias Davis 363bd6f5d6 better reading with isInvalid as method 2020-05-15 23:29:22 +02:00
Eduardo Gulias Davis 2ea18ea9ba new escaping check 2020-05-15 23:25:03 +02:00
Eduardo Gulias Davis 7e0ee1686d Psalm dep and new reason added 2020-05-15 23:14:29 +02:00
Eduardo Gulias Davis 4a38c49fb5 clean up 2020-05-15 22:59:24 +02:00
Eduardo Gulias Davis aa0eeae92b local part comments 2020-05-03 15:25:33 +02:00
Eduardo Gulias Davis ccade62caa polish 2020-05-01 16:06:49 +02:00
Eduardo Gulias Davis 1cfe87c50f Quoted string parsing returns only Results and avoids exceptions 2020-05-01 16:06:01 +02:00
Eduardo Gulias Davis 79ee0f5864 better use of the new quote parser 2020-05-01 15:09:10 +02:00
Eduardo Gulias Davis 9a9e745d68 DoubleQuote parser and replacement to green 2020-05-01 15:00:09 +02:00
Eduardo Gulias Davis ac3f65dbb6 Improving dquote parsing. First refactor to internal function 2020-04-30 23:42:45 +02:00
Eduardo Gulias Davis 58400a0742 Working to retunr invalid emails from boolean functions 2020-04-27 23:58:55 +02:00
Eduardo Gulias Davis 4e72769520 Starting to change local part parser 2020-04-23 23:52:32 +02:00
Eduardo Gulias Davis 830b061103 Return types 2020-04-23 23:35:40 +02:00
Eduardo Gulias Davis 442f13a438 Main parser method transformed. Improved Reasons with details for clarity of failure 2020-04-22 00:09:42 +02:00
Eduardo Gulias Davis ab6a4fb8a6 Initial approach to avoiding exceptions and better results. Failing test to remember to implement tokens 2020-04-20 23:57:29 +02:00
Eduardo Gulias Davis ebd405cebb Update CI files 2020-04-20 23:10:42 +02:00
Eduardo Gulias Davis e00c261e78 Update to 7.2 2020-04-20 00:31:37 +02:00
Florent Morselli 2f38a470f9 Update .gitattributes (#237)
This PR removes information/debug/testing files from the distribution
2020-03-02 22:43:01 +01:00
Marcin Michalski ade6887fd9 Fix local part length check (#233) 2.1.17 2020-02-13 23:36:52 +01:00
Denis Ryabov 5065fafc8c Fix "Trying to access array offset on value of type null" (#228)
Added a check that `$previous` is not null (i.e. previous token exists)
2.1.16
2020-02-12 23:28:28 +01:00
SignpostMarv e834eea530 Enabling psalm on php >= 7.1, fixing #125, #168, #169, partially fixing #177 (#190)
* experimenting with psalm

* loading in symfony polyfill, partially resolves egulias/EmailValidator#177, but SpoofChecker does not seem to be polyfilled in symfony/polyfill-intl-*

* removing unused imports, fixes egulias/EmailValidator#168 and egulias/EmailValidator#169

* not actually used for object storage

* Egulias\Tests\EmailValidator\Validation\SpoofCheckValidationTest::testEmailWithSpoofsIsInvalid fails if extension is not installed

* satisfying psalm

* amending indentation

* disabling psalm on 5.6

* attempting to resolve psalm issue on 7.0 & 7.1

* dropping psalm from 7.0 matrix

* ext-intl removed as per egulias/EmailValidator#231

* updating baseline with psalm 3.8.3

* suppressing issue with Spoofchecker not being present, pending resolution of egulias/EmailValidator#231

* enable psalm on travis config for php 7.3
2.1.15
2020-01-20 22:40:59 +01:00
SignpostMarv c4b8d12921 Composer tweaks (#227)
* lockfile is not present in git repo

* correcting autoloader

* package is listed on packagist, repo listing in composer.json causes install issues on windows

Co-authored-by: Eduardo Gulias Davis <eduardomgulias@gmail.com>
2.1.14
2020-01-05 15:11:20 +01:00