Skip to content

v2.2.0

Latest

Choose a tag to compare

@otsch otsch released this 06 Jan 19:08

Added

  • New *OrThrow() methods in the Validator class that throw an InvalidUrlComponentException on invalid values, complementing the existing methods which return null (e.g. Validator::schemeOrThrow(), Validator::userOrThrow(), Validator::passwordOrThrow(), Validator::hostOrThrow(), Validator::pathOrThrow(), etc.).

Fixed

  • Potential issues found with PHPStan 2 on level 8.
  • Updated lists of public suffixes, schemes and default ports.

Deprecated

  • Validator::callValidationByComponentName() – This method dynamically dispatches to component-specific validation methods (e.g. callValidationByComponentName('scheme', 'https') => Validator::scheme('https')) and is no longer needed. Call the corresponding validation method directly instead (e.g. Validator::scheme()).