Skip to content

Commit

Permalink
Fix Psalm assertions on assertInstanceOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored and sebastianbergmann committed Nov 3, 2020
1 parent 45e0286 commit 9c60d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Framework/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ public static function assertAttributeNotSame($expected, string $actualAttribute
*
* @psalm-template ExpectedType of object
* @psalm-param class-string<ExpectedType> $expected
* @psalm-assert ExpectedType $actual
* @psalm-assert =ExpectedType $actual
*/
public static function assertInstanceOf(string $expected, $actual, string $message = ''): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/Assert/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ function assertAttributeNotSame($expected, string $actualAttributeName, $actualC
*
* @psalm-template ExpectedType of object
* @psalm-param class-string<ExpectedType> $expected
* @psalm-assert ExpectedType $actual
* @psalm-assert =ExpectedType $actual
*
* @see Assert::assertInstanceOf
*/
Expand Down

0 comments on commit 9c60d7d

Please sign in to comment.