File: |
src/EmailValidator/Validator/AProviderValidator.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
Class source |
Class: |
PHP Email Validation Library Pro
Validate email addresses using multiple rules |
Author: |
By John Conde |
Last change: |
docs: add comprehensive docblock comments to validator classes
Added detailed PHPDoc comments to all validator classes in the Validator directory:
- IValidator: Added interface documentation explaining the validator contract
- AValidator: Added abstract class documentation and improved property/method docs
- BasicValidator: Added class and method documentation for basic email format validation
- MxValidator: Added class and method documentation for MX record validation
- BannedListValidator: Added class and method documentation for banned domain validation
- DisposableEmailValidator: Added class and method documentation for disposable email validation
- FreeEmailValidator: Added class and method documentation for free email provider validation
- AProviderValidator: Added class and method documentation for provider list handling
Each class now includes:
- Class-level docblock explaining purpose and functionality
- Property docblocks with detailed descriptions
- Method docblocks with parameter and return value descriptions
- Improved type hints and array type documentation
All tests passing (77 tests, 94 assertions).
feat: add strict typing and improve type safety throughout codebase
- Breaking change: requires PHP 7.4 or newer
- Add strict type declarations to all properties and method signatures in core and validator classes
- Use PHP 7.4+ typed properties and improve PHPDoc array type hints
- Refactor provider validators to handle null/invalid domains gracefully and consistently return true for invalid emails
- Update and expand unit tests to cover edge cases, type safety, and invalid input handling
- Refactor internal logic for better null safety and array filtering
- No breaking changes to the public API; all existing integrations remain compatible
- All tests passing
|
Date: |
18 days ago |
Size: |
2,775 bytes |
|
|
|