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