Skip to content

Commit e648458

Browse files
committed
chore: improve phpstan asserts
1 parent f0275e6 commit e648458

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Codeception/Util/Shared/InheritedAsserts.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ protected function assertInstanceOf(string $expected, $actual, string $message =
402402
* Asserts that a variable is of type array.
403403
*
404404
* @param mixed $actual
405-
*
406-
* @phpstan-assert array $actual
405+
* @phpstan-assert array<mixed> $actual
407406
*/
408407
protected function assertIsArray($actual, string $message = ''): void
409408
{
@@ -475,7 +474,7 @@ protected function assertIsInt($actual, string $message = ''): void
475474
*
476475
* @param mixed $actual
477476
*
478-
* @phpstan-assert iterable $actual
477+
* @phpstan-assert iterable<mixed> $actual
479478
*/
480479
protected function assertIsIterable($actual, string $message = ''): void
481480
{
@@ -487,7 +486,7 @@ protected function assertIsIterable($actual, string $message = ''): void
487486
*
488487
* @param mixed $actual
489488
*
490-
* @phpstan-assert !array $actual
489+
* @phpstan-assert !array<mixed> $actual
491490
*/
492491
protected function assertIsNotArray($actual, string $message = ''): void
493492
{
@@ -559,7 +558,7 @@ protected function assertIsNotInt($actual, string $message = ''): void
559558
*
560559
* @param mixed $actual
561560
*
562-
* @phpstan-assert !iterable $actual
561+
* @phpstan-assert !iterable<mixed> $actual
563562
*/
564563
protected function assertIsNotIterable($actual, string $message = ''): void
565564
{

0 commit comments

Comments
 (0)