Skip to content

Commit

Permalink
Remove template-typeof use
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Sep 28, 2020
1 parent 66b991c commit 85ee5a0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions stubs/Assert_75.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -159,26 +159,24 @@ abstract class Assert

/**
* Asserts that a variable is of a given type.
* @template T
*
* @param class-string $expected
* @param class-string<T> $expected
* @param mixed $actual
* @param string $message
*
* @template T
* @template-typeof T $expected
* @psalm-assert T $actual
*/
public static function assertInstanceOf($expected, $actual, $message = '') {}

/**
* Asserts that a variable is of a given type.
* @template T
*
* @param class-string $expected
* @param class-string<T> $expected
* @param mixed $actual
* @param string $message
*
* @template T
* @template-typeof T $expected
* @psalm-assert !T $actual
*/
public static function assertNotInstanceOf($expected, $actual, $message = '') {}
Expand Down

0 comments on commit 85ee5a0

Please sign in to comment.