diff options
author | Mario <mario@mariovavti.com> | 2022-10-12 08:45:01 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-12 08:45:01 +0000 |
commit | 8bf5c18425cf15327fa11494e6e0d3749f36c6f8 (patch) | |
tree | fc358336312cd23030321a43f276db19cea17621 /vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php | |
parent | c36bb17475b3dd5925cefc32752f1fb8a63df154 (diff) | |
download | volse-hubzilla-8bf5c18425cf15327fa11494e6e0d3749f36c6f8.tar.gz volse-hubzilla-8bf5c18425cf15327fa11494e6e0d3749f36c6f8.tar.bz2 volse-hubzilla-8bf5c18425cf15327fa11494e6e0d3749f36c6f8.zip |
composer update ramsey/uuid
Diffstat (limited to 'vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php')
-rw-r--r-- | vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php b/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php index 16e6525da..3d36b6f12 100644 --- a/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php +++ b/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php @@ -56,22 +56,23 @@ trait SerializableFieldsTrait /** * Constructs the object from a serialized string representation * - * @param string $serialized The serialized string representation of the object + * @param string $data The serialized string representation of the object * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @psalm-suppress UnusedMethodCall */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - if (strlen($serialized) === 16) { - $this->__construct($serialized); + if (strlen($data) === 16) { + $this->__construct($data); } else { - $this->__construct(base64_decode($serialized)); + $this->__construct(base64_decode($data)); } } /** - * @param array{bytes: string} $data + * @param array{bytes?: string} $data + * + * @psalm-suppress UnusedMethodCall */ public function __unserialize(array $data): void { |