You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature symfony#57940 [Uid] Add support for binary, base-32 and base-58 representations in Uuid::isValid() (alexandre-daubois)
This PR was merged into the 7.2 branch.
Discussion
----------
[Uid] Add support for binary, base-32 and base-58 representations in `Uuid::isValid()`
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | Fixsymfony#57398
| License | MIT
Allows to use a bitfield in `Uuid::isValid()` to accept one or many formats:
```php
Uuid::isValid('...', Uuid::FORMAT_BASE_32 | Uuid::FORMAT_RFC_4122);
Uuid::isValid('...', Uuid::FORMAT_ALL);
UUid::isValid('...'); // by default, FORMAT_RFC_4122 is used to match the current behavior
```
Commits
-------
64aa006 [Uid] Add support for binary, base-32 and base-58 representations in `Uuid::isValid()`
0 commit comments