Skip to content

Commit d032fba

Browse files
mitelgsebastianbergmann
authored andcommitted
fix: Make sure PHPStan detects type correctly after usage of Assert::assertIsList
1 parent 773ef86 commit d032fba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Framework/Assert.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ final public static function assertArrayNotHasKey(int|string $key, array|ArrayAc
195195
}
196196

197197
/**
198+
* @phpstan-assert list $array
199+
*
198200
* @throws ExpectationFailedException
199201
*/
200202
final public static function assertIsList(mixed $array, string $message = ''): void

0 commit comments

Comments
 (0)