From 10ba98c4f5ec4efe6272516de47f0ce128ef2902 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 11 Oct 2022 18:41:34 +0000 Subject: Revert "update composer libs" This reverts commit 108a3efe0b6d37a7ed394a84c69b924ca727f17a. --- vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php | 29 ++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php') diff --git a/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php b/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php index c0b47bbf2..8ba757964 100644 --- a/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php +++ b/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php @@ -18,8 +18,8 @@ use DateTimeInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Exception\UnsupportedOperationException; use Ramsey\Uuid\Fields\FieldsInterface; +use Ramsey\Uuid\Nonstandard\UuidV6; use Ramsey\Uuid\Rfc4122\UuidV1; -use Ramsey\Uuid\Rfc4122\UuidV6; use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Type\Integer as IntegerObject; use Ramsey\Uuid\UuidFactory; @@ -55,14 +55,18 @@ use function substr; final class LazyUuidFromString implements UuidInterface { public const VALID_REGEX = '/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/ms'; - - private ?UuidInterface $unwrapped = null; - /** - * @psalm-param non-empty-string $uuid + * @var string + * @psalm-var non-empty-string */ - public function __construct(private string $uuid) + private $uuid; + /** @var UuidInterface|null */ + private $unwrapped; + + /** @psalm-param non-empty-string $uuid */ + public function __construct(string $uuid) { + $this->uuid = $uuid; } /** @psalm-pure */ @@ -101,20 +105,19 @@ final class LazyUuidFromString implements UuidInterface /** * {@inheritDoc} * - * @param string $data + * @param string $serialized * - * @psalm-param non-empty-string $data + * @psalm-param non-empty-string $serialized */ - public function unserialize(string $data): void + public function unserialize($serialized): void { - $this->uuid = $data; + $this->uuid = $serialized; } /** - * @param array{string?: string} $data + * @param array{string: string} $data * - * @psalm-param array{string?: non-empty-string} $data - * @psalm-suppress UnusedMethodCall + * @psalm-param array{string: non-empty-string} $data */ public function __unserialize(array $data): void { -- cgit v1.2.3