psalm-plugin-phpunit/stubs/Prophecy.phpstub
Bruce Weirdan 5128529ca9
Rename stubs from *.php to *.phpstub
This hides them from PHPStorm, preventing false positives it used to
emit.
2020-04-05 20:49:25 +03:00

27 lines
613 B
Plaintext

<?php
namespace Prophecy\Prophecy {
/** @template T */
class ObjectProphecy implements ProphecyInterface
{
/** @return T */
public function reveal() {}
}
class MethodProphecy
{
public function willReturn(...$values): self {}
}
}
namespace Prophecy {
use Prophecy\Argument\Token;
class Argument
{
/** @param callable():bool $callback */
public static function that(callable $callback): Token\CallbackToken {}
/** @param mixed ...$tokens */
public static function allOf(...$tokens): Token\LogicalAndToken {}
}
}