MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / phpPropertyTypePatterns

Function phpPropertyTypePatterns

src/resolution/name-matcher.ts:1538–1540  ·  view source on GitHub ↗

* Patterns that recover a PHP class property's declared type for a * `$this->prop` receiver. Deliberately NOT localReceiverTypePatterns: only * property-shaped declarations qualify — * 1. a modifier-prefixed typed declaration, which covers both a typed * property (`private ?Foo $prop;`) a

(r: string)

Source from the content-addressed store, hash-verified

1536 * shape is handled by inferPhpAssignedPropertyType instead.
1537 */
1538function phpPropertyTypePatterns(r: string): RegExp[] {
1539 return memoPatterns(`php-prop|${r}`, () => buildPhpPropertyTypePatterns(r));
1540}
1541
1542function buildPhpPropertyTypePatterns(r: string): RegExp[] {
1543 return [

Callers 1

inferLocalReceiverTypeFunction · 0.85

Calls 2

memoPatternsFunction · 0.85

Tested by

no test coverage detected