Skip to content

4.0.0-beta1

Pre-release
Pre-release
Compare
Choose a tag to compare
@ramsey ramsey released this 27 Feb 03:37
4.0.0-beta1
f374dae

Added

  • Add ValidatorInterface::getPattern() to return the regular expression
    pattern used by the validator.
  • Add v6() helper function for version 6 UUIDs.

Changed

  • Set the pattern constants on validators as private. Use the getPattern()
    method instead.
  • Change the $node parameter for UuidFactoryInterface::uuid6() to accept
    null or Type\Hexadecimal.
  • Accept Type\Hexadecimal for the $node parameter for
    UuidFactoryInterface::uuid1(). This is in addition to the int|string types
    already accepted, so there are no BC breaks. Type\Hexadecimal is now the
    recommended type to pass for $node.

Removed

  • Remove currentTime() method from Provider\Time\FixedTimeProvider and
    Provider\Time\SystemTimeProvider; it had previously been removed from
    Provider\TimeProviderInterface.