Skip to content

Commit b222758

Browse files
committed
Fixed @phpstan-assert for methods in() and inArray()
1 parent 82d3fba commit b222758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Assert.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public static function stringOrNull($value, $msg = NULL)
256256
* @tracySkipLocation
257257
* @phpstan-template T
258258
* @phpstan-param T[] $haystack
259-
* @phpstan-assert value-of<T> $value
259+
* @phpstan-assert value-of<T[]> $value
260260
*/
261261
public static function in($value, array $haystack, $msg = NULL)
262262
{
@@ -274,7 +274,7 @@ public static function in($value, array $haystack, $msg = NULL)
274274
* @tracySkipLocation
275275
* @phpstan-template T
276276
* @phpstan-param T[] $haystack
277-
* @phpstan-assert value-of<T> $value
277+
* @phpstan-assert value-of<T[]> $value
278278
*/
279279
public static function inArray($value, array $haystack, $msg = NULL)
280280
{

0 commit comments

Comments
 (0)