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

Function assertRock

examples/demo.php:5016–5021  ·  view source on GitHub ↗

@phpstan-assert Rock $value */

(mixed $value)

Source from the content-addressed store, hash-verified

5014
5015/** @phpstan-assert Rock $value */
5016function assertRock(mixed $value): void
5017{
5018 if (!$value instanceof Rock) {
5019 throw new \InvalidArgumentException('Expected Rock');
5020 }
5021}
5022
5023/** @phpstan-assert-if-true Rock $value */
5024function isRock(mixed $value): bool

Callers 2

demoMethod · 0.85
runDemoAssertionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected