Skip to content

Commit 07b81b7

Browse files
committed
chore: fix static analysis issues
1 parent 91ea209 commit 07b81b7

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Map/AbstractTypedMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
* This class provides a basic implementation of `TypedMapInterface`, to
2323
* minimize the effort required to implement this interface.
2424
*
25-
* @phpstan-ignore-next-line
26-
* @template K as array-key
25+
* @template K
2726
* @template T
2827
* @template-extends AbstractMap<T>
2928
* @template-implements TypedMapInterface<T>
@@ -64,6 +63,7 @@ public function offsetSet($offset, $value): void
6463
);
6564
}
6665

66+
/** @psalm-suppress MixedArgumentTypeCoercion */
6767
parent::offsetSet($offset, $value);
6868
}
6969
}

src/Map/TypedMap.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@
8080
* }
8181
* ```
8282
*
83-
* @phpstan-ignore-next-line
84-
* @template K as array-key
83+
* @template K
8584
* @template T
8685
* @template-extends AbstractTypedMap<K, T>
8786
*/
@@ -121,6 +120,8 @@ public function __construct(string $keyType, string $valueType, array $data = []
121120
{
122121
$this->keyType = $keyType;
123122
$this->valueType = $valueType;
123+
124+
/** @psalm-suppress MixedArgumentTypeCoercion */
124125
parent::__construct($data);
125126
}
126127

0 commit comments

Comments
 (0)