diff --git a/src/Symfony/Component/Uid/NilUuid.php b/src/Symfony/Component/Uid/NilUuid.php index b5ff73a476..6cf333a187 100644 --- a/src/Symfony/Component/Uid/NilUuid.php +++ b/src/Symfony/Component/Uid/NilUuid.php @@ -18,7 +18,7 @@ namespace Symfony\Component\Uid; */ class NilUuid extends Uuid { - protected const TYPE = \UUID_TYPE_NULL; + protected const TYPE = -1; public function __construct() { diff --git a/src/Symfony/Component/Uid/Uuid.php b/src/Symfony/Component/Uid/Uuid.php index 06150033d6..87a285b9c3 100644 --- a/src/Symfony/Component/Uid/Uuid.php +++ b/src/Symfony/Component/Uid/Uuid.php @@ -18,7 +18,7 @@ namespace Symfony\Component\Uid; */ class Uuid extends AbstractUid { - protected const TYPE = \UUID_TYPE_DEFAULT; + protected const TYPE = 0; public function __construct(string $uuid) { diff --git a/src/Symfony/Component/Uid/UuidV1.php b/src/Symfony/Component/Uid/UuidV1.php index 5f2d7e6a8a..f4f91361cf 100644 --- a/src/Symfony/Component/Uid/UuidV1.php +++ b/src/Symfony/Component/Uid/UuidV1.php @@ -20,7 +20,7 @@ namespace Symfony\Component\Uid; */ class UuidV1 extends Uuid { - protected const TYPE = \UUID_TYPE_TIME; + protected const TYPE = 1; public function __construct(string $uuid = null) { diff --git a/src/Symfony/Component/Uid/UuidV3.php b/src/Symfony/Component/Uid/UuidV3.php index d5d0d8fe86..80b40c15eb 100644 --- a/src/Symfony/Component/Uid/UuidV3.php +++ b/src/Symfony/Component/Uid/UuidV3.php @@ -22,5 +22,5 @@ namespace Symfony\Component\Uid; */ class UuidV3 extends Uuid { - protected const TYPE = \UUID_TYPE_MD5; + protected const TYPE = 3; } diff --git a/src/Symfony/Component/Uid/UuidV4.php b/src/Symfony/Component/Uid/UuidV4.php index d338f1eb0c..decb2819cf 100644 --- a/src/Symfony/Component/Uid/UuidV4.php +++ b/src/Symfony/Component/Uid/UuidV4.php @@ -20,7 +20,7 @@ namespace Symfony\Component\Uid; */ class UuidV4 extends Uuid { - protected const TYPE = \UUID_TYPE_RANDOM; + protected const TYPE = 4; public function __construct(string $uuid = null) { diff --git a/src/Symfony/Component/Uid/UuidV5.php b/src/Symfony/Component/Uid/UuidV5.php index 59a6a2082c..d63324eccb 100644 --- a/src/Symfony/Component/Uid/UuidV5.php +++ b/src/Symfony/Component/Uid/UuidV5.php @@ -22,5 +22,5 @@ namespace Symfony\Component\Uid; */ class UuidV5 extends Uuid { - protected const TYPE = \UUID_TYPE_SHA1; + protected const TYPE = 5; }