mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Merge branch '4.x' into 5.x
This commit is contained in:
@@ -29,13 +29,11 @@ use Ramsey\Uuid\UuidInterface;
|
||||
*/
|
||||
final class UuidIsImmutable
|
||||
{
|
||||
/** @psalm-pure */
|
||||
public static function pureCompareTo(UuidInterface $a, UuidInterface $b): int
|
||||
{
|
||||
return $a->compareTo($b);
|
||||
}
|
||||
|
||||
/** @psalm-pure */
|
||||
public static function pureEquals(UuidInterface $a, ?object $b): bool
|
||||
{
|
||||
return $a->equals($b);
|
||||
@@ -43,9 +41,6 @@ final class UuidIsImmutable
|
||||
|
||||
/**
|
||||
* @return mixed[]
|
||||
*
|
||||
* @psalm-pure
|
||||
* @psalm-suppress DeprecatedMethod
|
||||
*/
|
||||
public static function pureGetters(UuidInterface $a): array
|
||||
{
|
||||
@@ -62,8 +57,6 @@ final class UuidIsImmutable
|
||||
|
||||
/**
|
||||
* @return array{UuidInterface, UuidInterface, bool}
|
||||
*
|
||||
* @psalm-pure
|
||||
*/
|
||||
public static function pureStaticUuidApi(): array
|
||||
{
|
||||
@@ -76,7 +69,6 @@ final class UuidIsImmutable
|
||||
];
|
||||
}
|
||||
|
||||
/** @psalm-pure */
|
||||
public static function uuid3IsPure(): UuidInterface
|
||||
{
|
||||
return Uuid::uuid3(
|
||||
@@ -85,7 +77,6 @@ final class UuidIsImmutable
|
||||
);
|
||||
}
|
||||
|
||||
/** @psalm-pure */
|
||||
public static function uuid5IsPure(): UuidInterface
|
||||
{
|
||||
return Uuid::uuid5(
|
||||
|
||||
Reference in New Issue
Block a user