Write an empty stub map when stubs aren't available.
()
| 567 | |
| 568 | /// Write an empty stub map when stubs aren't available. |
| 569 | fn write_empty_stubs() { |
| 570 | let content = concat!( |
| 571 | "pub(crate) static STUB_FILES: [&str; 0] = [];\n", |
| 572 | "pub(crate) static STUB_CLASS_MAP: [(&str, usize); 0] = [];\n", |
| 573 | "pub(crate) static STUB_FUNCTION_MAP: [(&str, usize); 0] = [];\n", |
| 574 | "pub(crate) static STUB_CONSTANT_MAP: [(&str, usize); 0] = [];\n", |
| 575 | ); |
| 576 | write_if_changed(content); |
| 577 | } |
| 578 | |
| 579 | /// Parse one of the `const CLASSES = array(...)`, `const FUNCTIONS = array(...)`, |
| 580 | /// or `const CONSTANTS = array(...)` sections from the PhpStormStubsMap.php file. |
no test coverage detected