Repository navigation
Conversation
code-review-graph reviewOverall risk: 0.30 (LOW) — 5 changed function(s)/class(es), 0 affected flow(s), 2 test gap(s) Risk-scored changes
Test gaps
Token savings: this graph-backed report used ~163,666 fewer tokens (~99%) than reading every changed file in full (estimated, chars/4 approximation). Powered by code-review-graph — local-first analysis; no code leaves the CI runner. |
|
Integrated on |
|
Merged into |
Port the reviewed token-efficiency implementation with targeted regression coverage. Source-PR: tirth8205#875 Maintainer corrections and scope extraction applied where needed.
Summary
PHP
usedeclarations produced import edges, but procedural PHP files wired together withinclude,include_once,require, andrequire_oncehad noIMPORTS_FROMedges. Impact radius and importer queries therefore saw no cross-file structure for non-Composer codebases.The parser now treats all four include/require expression forms as import nodes, extracts their string argument, and resolves relative paths ending in
.phpwithout appending a second extension.Fixes #819.
Testing
require_once 'includes/conexao.php';include_once 'helper.php'.mainwith zero import edges and pass with the fix.pytest tests/test_pr819_php_includes.py -q— 2 passedpytest tests/test_php_scoped_calls.py tests/test_php_laravel.py tests/test_pr819_php_includes.py -q— 56 passed, 2 skipped, plus one pre-existing Windows path-separator assertion unchanged by this patchruff checkon changed files — passesgit diff --check— passes