4.0.0-beta1
Pre-release
Pre-release
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 thegetPattern()
method instead. - Change the
$node
parameter forUuidFactoryInterface::uuid6()
to accept
null
orType\Hexadecimal
. - Accept
Type\Hexadecimal
for the$node
parameter for
UuidFactoryInterface::uuid1()
. This is in addition to theint|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 fromProvider\Time\FixedTimeProvider
and
Provider\Time\SystemTimeProvider
; it had previously been removed from
Provider\TimeProviderInterface
.