Skip to content

Commit 9c60d7d

Browse files
BenMorelsebastianbergmann
authored andcommitted
Fix Psalm assertions on assertInstanceOf()
1 parent 45e0286 commit 9c60d7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Framework/Assert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ public static function assertAttributeNotSame($expected, string $actualAttribute
18901890
*
18911891
* @psalm-template ExpectedType of object
18921892
* @psalm-param class-string<ExpectedType> $expected
1893-
* @psalm-assert ExpectedType $actual
1893+
* @psalm-assert =ExpectedType $actual
18941894
*/
18951895
public static function assertInstanceOf(string $expected, $actual, string $message = ''): void
18961896
{

src/Framework/Assert/Functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ function assertAttributeNotSame($expected, string $actualAttributeName, $actualC
15461546
*
15471547
* @psalm-template ExpectedType of object
15481548
* @psalm-param class-string<ExpectedType> $expected
1549-
* @psalm-assert ExpectedType $actual
1549+
* @psalm-assert =ExpectedType $actual
15501550
*
15511551
* @see Assert::assertInstanceOf
15521552
*/

0 commit comments

Comments
 (0)