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

Method demo

examples/demo.php:139–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137class VarDocblockDemo
138{
139 public function demo(): void
140 {
141 /** @var Pencil $inlineHinted */
142 $inlineHinted = getUnknownValue();
143 $inlineHinted->sketch();
144
145 /** @var Pen */
146 $hinted = getUnknownValue();
147 $hinted->write(); // without variable name (PHPStorm fails this)
148 }
149}
150
151

Callers

nothing calls this directly

Calls 3

getUnknownValueFunction · 0.85
sketchMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected