Returns `true` if the URI should be skipped for diagnostics (stub files only). Vendor files are not skipped because diagnostics only run on files the user has open in the editor, and users working in monorepos or with `--prefer-source` packages legitimately edit vendor files.
(&self, uri_str: &str)
| 195 | /// and users working in monorepos or with `--prefer-source` |
| 196 | /// packages legitimately edit vendor files. |
| 197 | fn should_skip_diagnostics(&self, uri_str: &str) -> bool { |
| 198 | uri_str.starts_with("phpantom-stub://") || uri_str.starts_with("phpantom-stub-fn://") |
| 199 | } |
| 200 | |
| 201 | /// Collect Phase 1 (fast) diagnostics: syntax errors, unused |
| 202 | /// imports. These are cheap — no type resolution. |
no outgoing calls
no test coverage detected