Skip to content

Commit

Permalink
Merge branch '1.4.x' into 2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 12, 2024
2 parents 3cc8554 + 11d4235 commit bec49ea
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ parameters:
- markTestIncomplete
- markTestSkipped
stubFiles:
- stubs/Assert.stub
- stubs/AssertionFailedError.stub
- stubs/ExpectationFailedException.stub
- stubs/InvocationMocker.stub
- stubs/MockBuilder.stub
- stubs/MockObject.stub
Expand Down
13 changes: 13 additions & 0 deletions stubs/Assert.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace PHPUnit\Framework;

abstract class Assert
{
/**
* @phpstan-assert list $array
*
* @throws ExpectationFailedException
*/
final public static function assertIsList(mixed $array, string $message = ''): void {}

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, lowest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, highest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, lowest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, highest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, lowest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, highest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, lowest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, highest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, lowest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, highest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, lowest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.

Check failure on line 12 in stubs/Assert.stub

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, highest)

PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type list.
}
8 changes: 8 additions & 0 deletions stubs/AssertionFailedError.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace PHPUnit\Framework;

class AssertionFailedError extends \Exception
{

}
8 changes: 8 additions & 0 deletions stubs/ExpectationFailedException.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace PHPUnit\Framework;

final class ExpectationFailedException extends AssertionFailedError
{

}

0 comments on commit bec49ea

Please sign in to comment.