pub fn codebase<'db>(db: &'db dyn Database, ws: Workspace) -> CodebaseArcExpand description
Build a finalized Codebase from the bundled PHP stubs (string/array/etc.
builtins) plus every user file’s StubSlice. Depends on Workspace.files
and transitively on every file’s file_definitions query. Stubs are
treated as constant — they don’t participate in salsa invalidation.
Load order matches today’s imperative path (Backend::new): stubs first,
user definitions second — so user classes with an FQN matching a stub
overwrite the stub entry. finalize() runs once at the end.