Skip to content

Commit 1ea9bb6

Browse files
committed
Fix PHPStan missingType.generics ignore
1 parent 3d69b3a commit 1ea9bb6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Framework/MockObject/Generator/Generator.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,11 +1110,15 @@ private function instantiateProxyTarget(?object $proxyTarget, object $object, st
11101110
}
11111111

11121112
/**
1113-
* @param class-string $className
1113+
* @template T of object
1114+
*
1115+
* @param class-string<T> $className
11141116
*
11151117
* @throws ReflectionException
11161118
*
1117-
* @phpstan-ignore missingType.generics, throws.unusedType
1119+
* @return ReflectionClass<T>
1120+
*
1121+
* @phpstan-ignore throws.unusedType
11181122
*/
11191123
private function reflectClass(string $className): ReflectionClass
11201124
{

0 commit comments

Comments
 (0)