MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / use_function_not_captured

Function use_function_not_captured

src/classmap_scanner.rs:2382–2391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2380
2381 #[test]
2382 fn use_function_not_captured() {
2383 let content =
2384 b"<?php\nnamespace App\\Cache;\nuse function is_array;\nuse function array_map;\n";
2385 let result = find_symbols(content);
2386 assert!(
2387 result.functions.is_empty(),
2388 "use function statements should not appear as functions: {:?}",
2389 result.functions
2390 );
2391 }
2392
2393 #[test]
2394 fn use_const_not_captured() {

Callers

nothing calls this directly

Calls 1

find_symbolsFunction · 0.85

Tested by

no test coverage detected