mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-26 17:46:38 +03:00
add typehints and return types
This commit is contained in:
committed by
Ben Ramsey
parent
3a42c259a7
commit
5459113b81
@@ -33,7 +33,7 @@ class Validator implements ValidatorInterface
|
||||
* @param string $uuid
|
||||
* @return bool Returns TRUE if the string was validated as a valid UUID or FALSE on failure
|
||||
*/
|
||||
public function validate($uuid)
|
||||
public function validate($uuid): bool
|
||||
{
|
||||
$uuid = str_replace(['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}'], '', $uuid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user