mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
chore(deps-dev): remove Psalm
This commit is contained in:
@@ -133,8 +133,7 @@ final class UuidSerializationBench
|
||||
/** @var UuidInterface */
|
||||
private $uuid;
|
||||
/**
|
||||
* @var UuidInterface[]
|
||||
* @psalm-var non-empty-list<UuidInterface>
|
||||
* @var non-empty-list<UuidInterface>
|
||||
*/
|
||||
private $promiscuousUuids;
|
||||
/** @var string */
|
||||
@@ -144,8 +143,7 @@ final class UuidSerializationBench
|
||||
/** @var string */
|
||||
private $serializedUuid;
|
||||
/**
|
||||
* @var string[]
|
||||
* @psalm-var non-empty-list<string>
|
||||
* @var non-empty-list<string>
|
||||
*/
|
||||
private $serializedPromiscuousUuids;
|
||||
|
||||
|
||||
@@ -132,28 +132,23 @@ final class UuidStringConversionBench
|
||||
/** @var UuidInterface */
|
||||
private $uuid;
|
||||
/**
|
||||
* @var UuidInterface[]
|
||||
* @psalm-var non-empty-list<UuidInterface>
|
||||
* @var non-empty-list<UuidInterface>
|
||||
*/
|
||||
private $promiscuousUuids;
|
||||
/**
|
||||
* @var string
|
||||
* @psalm-var non-empty-string
|
||||
* @var non-empty-string
|
||||
*/
|
||||
private $tinyUuidBytes;
|
||||
/**
|
||||
* @var string
|
||||
* @psalm-var non-empty-string
|
||||
* @var non-empty-string
|
||||
*/
|
||||
private $hugeUuidBytes;
|
||||
/**
|
||||
* @var string
|
||||
* @psalm-var non-empty-string
|
||||
* @var non-empty-string
|
||||
*/
|
||||
private $uuidBytes;
|
||||
/**
|
||||
* @var string[]
|
||||
* @psalm-var non-empty-list<non-empty-string>
|
||||
* @var non-empty-list<non-empty-string>
|
||||
*/
|
||||
private $promiscuousUuidsBytes;
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
@@ -76,8 +71,6 @@ final class UuidIsImmutable
|
||||
|
||||
/**
|
||||
* @return UuidInterface[]|bool[]
|
||||
*
|
||||
* @psalm-pure
|
||||
*/
|
||||
public static function pureStaticUuidApi(): array
|
||||
{
|
||||
@@ -90,7 +83,6 @@ final class UuidIsImmutable
|
||||
];
|
||||
}
|
||||
|
||||
/** @psalm-pure */
|
||||
public static function uuid3IsPure(): UuidInterface
|
||||
{
|
||||
return Uuid::uuid3(
|
||||
@@ -99,7 +91,6 @@ final class UuidIsImmutable
|
||||
);
|
||||
}
|
||||
|
||||
/** @psalm-pure */
|
||||
public static function uuid5IsPure(): UuidInterface
|
||||
{
|
||||
return Uuid::uuid5(
|
||||
|
||||
@@ -22,13 +22,13 @@ use Ramsey\Uuid\UuidInterface;
|
||||
*/
|
||||
final class UuidIsNeverEmpty
|
||||
{
|
||||
/** @psalm-return non-empty-string */
|
||||
/** @return non-empty-string */
|
||||
public function bytesAreNeverEmpty(UuidInterface $uuid): string
|
||||
{
|
||||
return $uuid->getBytes();
|
||||
}
|
||||
|
||||
/** @psalm-return non-empty-string */
|
||||
/** @return non-empty-string */
|
||||
public function stringIsNeverEmpty(UuidInterface $uuid): string
|
||||
{
|
||||
return $uuid->toString();
|
||||
|
||||
@@ -16,18 +16,14 @@ if (!defined('UUID_TYPE_RANDOM')) {
|
||||
define('UUID_TYPE_RANDOM', 4);
|
||||
}
|
||||
if (!function_exists('uuid_create')) {
|
||||
/** @psalm-suppress all */
|
||||
function uuid_create(int $uuid_type=UUID_TYPE_DEFAULT): string {} // @phpstan-ignore-line
|
||||
}
|
||||
if (!function_exists('uuid_generate_md5')) {
|
||||
/** @psalm-suppress all */
|
||||
function uuid_generate_md5(string $uuid_ns, string $name): string {} // @phpstan-ignore-line
|
||||
}
|
||||
if (!function_exists('uuid_generate_sha1')) {
|
||||
/** @psalm-suppress all */
|
||||
function uuid_generate_sha1(string $uuid_ns, string $name): string {} // @phpstan-ignore-line
|
||||
}
|
||||
if (!function_exists('uuid_parse')) {
|
||||
/** @psalm-suppress all */
|
||||
function uuid_parse(string $uuid): string {} // @phpstan-ignore-line
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user