240 Commits

Author SHA1 Message Date
vajexal 0dbf5d7845 Fix labels length check (#278)
* Fix label length check

* Test label too long on single word hostname
2.1.25
2020-12-29 15:50:06 +01:00
Nagesh A T 0878374ab8 Update .travis.yml (#276)
ppc64le support
2020-12-07 17:21:29 +01:00
DavidPrevot 0c26e9dece Don’t commit .phpunit.result.cache (#273) 2020-12-05 22:31:37 +01:00
Eduardo Gulias Davis ca90a3291e Cleanup 2.1.24 2020-11-14 16:56:27 +01:00
Eduardo Gulias Davis d04083e28b Allow people to show appreciation :) 2020-11-14 16:51:45 +01:00
Eduardo Gulias Davis db476db25e fix #272 2020-11-14 16:27:34 +01:00
Eduardo Gulias Davis d37d5a361e fix #255, fix #130 (#270) 2020-11-07 16:12:21 +01:00
David 5fa792ad18 Email addresses with single quote should not be valid (#268)
* Fixes issue for email addresses with single quote in domain part
* specify version in cli for older php versions

Co-authored-by: Eduardo Gulias Davis <eduardomgulias@gmail.com>
2.1.23
2020-10-31 21:37:35 +01:00
Eduardo Gulias Davis 68e418ec08 fix #217 (#266) 2.1.22 2020-09-26 17:48:38 +02:00
Phil Davis ef615f1d74 Minor typos (#265) 2020-09-26 16:40:57 +02:00
kishor 563d0cdde5 Issue-257: Fix PHP 7.3 compatibility issues. (#264) 2.1.21 2020-09-19 16:37:56 +02:00
zloKOMAtic c7ab280976 Update UnclosedComment.php (#263) 2020-09-19 16:37:41 +02:00
Eduardo Gulias Davis f46887bc48 Fix #260 with workaround (#261) 2.1.20 2020-09-06 15:44:32 +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
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
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
Graham Campbell 3d09cd0b58 Update .gitignore (#225) 2020-01-05 14:48:40 +01:00
Graham Campbell 3e3b1e562b Removed unneeded repositories section from composer.json (#226) 2020-01-02 13:23:54 +01:00
SignpostMarv ed32faa118 using ::class instead of FQCN literal, fixes egulias/EmailValidator#125 (#230) 2020-01-02 13:02:44 +01:00
Graham Campbell 834593d590 Fixed tests (#223) 2.1.13 2019-12-30 09:14:25 +01:00
Graham Campbell a6255605af Important compser.json fix (#220) 2.1.12 2019-12-20 13:49:39 +01:00
felipeAraujo 950d0663dc making the docs more precise in order to some lint tools don't give error (#216) 2019-09-15 22:23:48 +02:00
Nicolas Grekas 92dd169c32 Advertise return annotations from doctrine/lexer (#209) 2.1.11 2019-08-13 19:33:27 +02:00
Nicolas Grekas a6c8d7101b Fix PHP 7.4 support (#203)
Adding support for deprecated PHP behaviours.
2.1.10
2019-07-19 22:52:08 +02:00
Eduardo Gulias Davis 128cc721d7 fix(201) - empty domain 2.1.9 2019-06-23 12:14:27 +02:00
Viktor Szépe c26463ff92 Fix class name and parameter types (#200)
* Fix class name and paramtere types

* HHVM is not a thing anymore
2.1.8
2019-05-17 00:02:54 +02:00
Victor Bocharsky a09af2de87 Minor: Use SVG format for some bad looking badges in README (#197) 2019-05-07 22:08:52 +02:00
Victor Bocharsky c802f106b3 Simplify installation command in README (#198)
Composer will automatically use BC constraint, like `^2.1.7`
2019-05-07 22:08:00 +02:00
Joël Harkes 709f21f927 Update MultipleValidationWithAnd.php (#179)
* Update MultipleValidationWithAnd.php

Fix all validations actually get executed when mode is ALLOW_ALL_ERRORS (1)

* this should validate not breake out.

* Actually fix the unit tests

* add real invalid email test
2.1.7
2018-12-04 23:38:24 +01:00
Eduardo Gulias Davis e68c26e065 Update supported RFCs (#186)
solves #186
2018-12-03 11:33:36 +01:00
Andrey Bolonin 8036f2bd05 Update .travis.yml (#182) 2018-11-03 22:52:10 +01:00
nikitos569 0043eab0c5 Update README.md (#180) 2018-10-19 00:14:56 +02:00
SAMUEL NELA 0578b32b30 Added autoload-dev (#178) 2.1.6 2018-09-25 22:47:26 +02:00
Tom Sommer 54859fabea INTL_IDNA_VARIANT_UTS46 is not supported on all systems (#173)
* INTL_IDNA_VARIANT_UTS46 is not supported on all systems

Fall back to INTL_IDNA_VARIANT_2003 if INTL_IDNA_VARIANT_UTS46 is not found.

* Fix syntax error

* Update DNSCheckValidation.php
2.1.5
2018-08-16 22:49:45 +02:00
Tom Sommer 135444003f Correctly check for intl extension in SpoofCheck (#174) 2018-08-13 14:43:59 +02:00
Tom Sommer 9dde0df1e3 DNSCheckValidation requires the Intl extension (#175)
* DNSCheckValidation requires the Intl extension as well

* Check for Intl extension in DNSCheckValidation
2018-08-13 14:43:24 +02:00
Lode Claassen 8790f59415 DNS check should convert unicode domains first (#166)
* fix checkdnsrr not handling unicode domains properly

* fix for php7.2
2.1.4
2018-04-10 12:11:19 +02:00
masterwto 114b663f20 Update SpoofCheckValidation.php (#163)
removing spaces
2018-01-16 18:13:22 +01:00
Gabriel Caruso a0e0fadfce Use dedicated PHPUnit assertion methods (#159) 2018-01-05 23:47:59 +01:00
Robbert 74c0f07434 Clarification fix (#162)
You implement an interface.
2018-01-05 23:40:27 +01:00
Rotzbua ad1a0e9773 Update README.md (#157)
changed links from http to https if supported
2017-11-23 01:15:37 +01:00
Rotzbua aeb6851388 Update Other.md (#158)
change links from http to https if supported
2017-11-23 01:15:20 +01:00
Remi Collet a23fcc1315 Improve test requirements and add versions to test matrix
* allow phpunit 5.7 and 6

* add PHP 7.1 and 7.2 to travis
2017-11-17 00:41:28 +01:00
Gabriel Caruso 1bec00a100 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#155)
* Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase

* Use installed PHPUnit version not global
2.1.3
2017-11-16 00:40:40 +01:00