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

Method demo

examples/demo.php:1638–1645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1636 ) {}
1637
1638 public function demo(): void
1639 {
1640 // Inline @var on promoted property overrides the native type hint
1641 foreach ($this->ingredients as $ingredient) {
1642 $ingredient->name; // Ingredient::$name via inline @var
1643 $ingredient->format(); // Ingredient::format() via inline @var
1644 }
1645 }
1646}
1647
1648

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected