crate::ClassResolver composing a primary resolver (user’s PSR-4 /
classmap) with a fallback (typically StubClassResolver). The
primary is consulted first; if it misses, the fallback is tried.
crate::ClassResolver that maps PHP built-in class FQCNs
(ArrayObject, Exception, ReflectionClass, …) to the stub virtual
path that defines them. Used by crate::ChainedClassResolver to
make find_class_like aware of PHP built-ins in addition to the
user’s PSR-4 / classmap.
Pluggable strategy for mapping a fully-qualified class name to the file
that should define it. The analyzer never touches vendor/ or the
filesystem on its own — it asks a ClassResolver when a symbol is needed.
Convert a parser php_ast::Span (byte-offset range) into a
mir_types::Location (file path + 1-based line range +
0-based codepoint columns) using source and the parser’s source_map.
Look up the stub virtual path that defines a built-in PHP class / interface
/ trait / enum. Lookup is case-insensitive. Strips a single leading
backslash if present. Returns None if not a known built-in type.