Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

throw new InvalidCharsInVatNumberException;

Compare
Choose a tag to compare
@spaze spaze released this 25 Sep 16:52

This release adds a new exception when you pass invalid characters for VAT number validation. Previously, such VAT number was sent for validation but came back as invalid.

  • InvalidCharsInVatNumberException thrown when the VAT number to be validated contains invalid (e.g. non-latin) characters, use $e->getInvalidChars() to get the chars and their offset as array (#20)
  • Abstract base exception class VatNumberException for VAT number-related failures
  • Move phpstan/phpstan to dev dependencies only, it's not required for or by the lib itself
  • Auto code checking with linter, code sniffer (#18)