Skip to content

Commit 85ee5a0

Browse files
authored
Remove template-typeof use
1 parent 66b991c commit 85ee5a0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

stubs/Assert_75.phpstub

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,24 @@ abstract class Assert
159159

160160
/**
161161
* Asserts that a variable is of a given type.
162+
* @template T
162163
*
163-
* @param class-string $expected
164+
* @param class-string<T> $expected
164165
* @param mixed $actual
165166
* @param string $message
166167
*
167-
* @template T
168-
* @template-typeof T $expected
169168
* @psalm-assert T $actual
170169
*/
171170
public static function assertInstanceOf($expected, $actual, $message = '') {}
172171

173172
/**
174173
* Asserts that a variable is of a given type.
174+
* @template T
175175
*
176-
* @param class-string $expected
176+
* @param class-string<T> $expected
177177
* @param mixed $actual
178178
* @param string $message
179179
*
180-
* @template T
181-
* @template-typeof T $expected
182180
* @psalm-assert !T $actual
183181
*/
184182
public static function assertNotInstanceOf($expected, $actual, $message = '') {}

0 commit comments

Comments
 (0)