aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ramsey/uuid/src/Fields
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-11 18:29:06 +0000
committerMario <mario@mariovavti.com>2022-10-11 18:29:06 +0000
commitccd826f63a7a4c7e442fab8a70d9c4c84808b417 (patch)
treefbbde69114acba764cf6b735433c53e099fd19c5 /vendor/ramsey/uuid/src/Fields
parent5e5f0aa955d86743a14531bed98501b59140ab1f (diff)
downloadvolse-hubzilla-ccd826f63a7a4c7e442fab8a70d9c4c84808b417.tar.gz
volse-hubzilla-ccd826f63a7a4c7e442fab8a70d9c4c84808b417.tar.bz2
volse-hubzilla-ccd826f63a7a4c7e442fab8a70d9c4c84808b417.zip
Revert "update composer libs"
This reverts commit 5e5f0aa955d86743a14531bed98501b59140ab1f.
Diffstat (limited to 'vendor/ramsey/uuid/src/Fields')
-rw-r--r--vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php b/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php
index 3d36b6f12..16e6525da 100644
--- a/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php
+++ b/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php
@@ -56,23 +56,22 @@ trait SerializableFieldsTrait
/**
* Constructs the object from a serialized string representation
*
- * @param string $data The serialized string representation of the object
+ * @param string $serialized The serialized string representation of the object
*
+ * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
* @psalm-suppress UnusedMethodCall
*/
- public function unserialize(string $data): void
+ public function unserialize($serialized): void
{
- if (strlen($data) === 16) {
- $this->__construct($data);
+ if (strlen($serialized) === 16) {
+ $this->__construct($serialized);
} else {
- $this->__construct(base64_decode($data));
+ $this->__construct(base64_decode($serialized));
}
}
/**
- * @param array{bytes?: string} $data
- *
- * @psalm-suppress UnusedMethodCall
+ * @param array{bytes: string} $data
*/
public function __unserialize(array $data): void
{