We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e1247 commit ba6dc1bCopy full SHA for ba6dc1b
src/ProphecyTrait.php
@@ -36,7 +36,10 @@ trait ProphecyTrait
36
* @throws DoubleException
37
* @throws InterfaceNotFoundException
38
*
39
- * @psalm-param class-string|null $classOrInterface
+ * @template T of object
40
+ * @phpstan-param class-string<T>|null $classOrInterface
41
+ * @phpstan-return ($classOrInterface is null ? ObjectProphecy<object> : ObjectProphecy<T>)
42
+ *
43
* @not-deprecated
44
*/
45
protected function prophesize(?string $classOrInterface = null): ObjectProphecy
0 commit comments