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