* experimenting with psalm
* loading in symfony polyfill, partially resolvesegulias/EmailValidator#177, but SpoofChecker does not seem to be polyfilled in symfony/polyfill-intl-*
* removing unused imports, fixesegulias/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
* 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>
* 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
* 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
* Compatibility with RFC 2181
According to RFC2181, every DNS query needs to have a . at the end of
the name record you are requesting.
This will show that that name record is the root of the domain you are
asking
In some cases, when the . is missing, the hostname of the server the
code is running on will be appended to the name record when
checkdnsrr() is being executed and this will in turn return a false
positive when there is a wildcard DNS record for the root domain of the
hostname of the server.
* Test deprecation warnings removed
By using
"ext-intl": "*"
in the require block, the suggestion will be hidden if it is already available. ext/php-intl has few google search results and will confuse less knowledgeable users.
Corrected PHP example for missing semi-colons. Added a new requirements section that explains the need for composer and the need of the PHP Intl library to use the spoof validation.
People that install this library via composer don't need the test stuff, they just need the library itself.
This PR removes the development directories and files from the repository auto-generated ZIP archives.
Since these development files/directories will still be available via `git clone`, Travis is happy, developers are happy, and so are end-users (they won't have unneeded stuff in production machines).