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

Function phpPropertyTypePatterns

src/resolution/name-matcher.ts:1526–1528  ·  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

1524 * shape is handled by inferPhpAssignedPropertyType instead.
1525 */
1526function phpPropertyTypePatterns(r: string): RegExp[] {
1527 return memoPatterns(`php-prop|${r}`, () => buildPhpPropertyTypePatterns(r));
1528}
1529
1530function buildPhpPropertyTypePatterns(r: string): RegExp[] {
1531 return [

Callers 1

inferLocalReceiverTypeFunction · 0.85

Calls 2

memoPatternsFunction · 0.85

Tested by

no test coverage detected