diff options
author | Mario <mario@mariovavti.com> | 2021-02-15 18:29:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-15 18:29:24 +0000 |
commit | 02401ea9fd5d53f590305c0f9834685cda58723d (patch) | |
tree | e60e292f8ae389c3a353dafda37003b4c15a45d5 /vendor/ramsey/collection/src/Map/TypedMap.php | |
parent | 18c8f1b903e90ca3632520b90d21ec3770bf6e0b (diff) | |
download | volse-hubzilla-02401ea9fd5d53f590305c0f9834685cda58723d.tar.gz volse-hubzilla-02401ea9fd5d53f590305c0f9834685cda58723d.tar.bz2 volse-hubzilla-02401ea9fd5d53f590305c0f9834685cda58723d.zip |
composer update ramsey/collection
Diffstat (limited to 'vendor/ramsey/collection/src/Map/TypedMap.php')
-rw-r--r-- | vendor/ramsey/collection/src/Map/TypedMap.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/vendor/ramsey/collection/src/Map/TypedMap.php b/vendor/ramsey/collection/src/Map/TypedMap.php index 84d075f80..752475fee 100644 --- a/vendor/ramsey/collection/src/Map/TypedMap.php +++ b/vendor/ramsey/collection/src/Map/TypedMap.php @@ -79,6 +79,11 @@ use Ramsey\Collection\Tool\TypeTrait; * } * } * ``` + * + * @phpstan-ignore-next-line + * @template K as array-key + * @template T + * @template-extends AbstractTypedMap<K, T> */ class TypedMap extends AbstractTypedMap { @@ -97,7 +102,7 @@ class TypedMap extends AbstractTypedMap /** * The data type of values stored in this collection. * - * A map values's type is immutable once it is set. For this reason, this + * A map value's type is immutable once it is set. For this reason, this * property is set private. * * @var string data type of the map value. @@ -110,7 +115,7 @@ class TypedMap extends AbstractTypedMap * * @param string $keyType The data type of the map's keys. * @param string $valueType The data type of the map's values. - * @param mixed[] $data The initial data to set for this map. + * @param array<K, T> $data The initial data to set for this map. */ public function __construct(string $keyType, string $valueType, array $data = []) { @@ -119,17 +124,11 @@ class TypedMap extends AbstractTypedMap parent::__construct($data); } - /** - * Return the type used on the key. - */ public function getKeyType(): string { return $this->keyType; } - /** - * Return the type forced on the values. - */ public function getValueType(): string { return $this->valueType; |