MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / assertRock

Method assertRock

examples/demo.php:5038–5043  ·  view source on GitHub ↗

@phpstan-assert Rock $value */

(mixed $value)

Source from the content-addressed store, hash-verified

5036{
5037 /** @phpstan-assert Rock $value */
5038 public static function assertRock(mixed $value): void
5039 {
5040 if (!$value instanceof Rock) {
5041 throw new \InvalidArgumentException('Expected Rock');
5042 }
5043 }
5044
5045 /** @phpstan-assert-if-true Rock $value */
5046 public static function isRock(mixed $value): bool

Callers 2

demoMethod · 0.80
runDemoAssertionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected