Files
codebase-memory-mcp/tests
Martin Vogel 38f5ce89b6 fix(php): say what the absence proof of a global use proves
A `use const` can name nothing the graph holds but a File or Module of
the name: the graph has no node for a PHP constant (a top-level or
namespaced `const`, a class constant and `define()` give none), so the
check for a constant or variable node of the name compared against
nodes that never exist. Say so, and drop that check. Name the proof's
other limits: names are compared as written, while PHP compares class
and function names in any ASCII case; and a function declared inside
another function's body has no node.

Tests: an aliased global `use function` keeps the file's imports
unknown (it binds the alias exception), and a `use const` beside the
project's own `const` leaves the file complete (it binds what the proof
claims for constants). The partner beside a namespaced function of the
same name is dropped: it passed with and without the change it was
meant to guard, because the import resolver binds that use by name
first.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-11-27 02:05:12 +01:00
..