AOT: phpc build --project uses ProjectGraph PSR-4 discovery (#154) - #3866
Merged
Conversation
This was referenced May 30, 2026
Phase 2 of multi-TU project build: compile argv uses ProjectGraph discovery (manifest includes, literal requires, autoload.psr-4) instead of includes[] only. Lint --project walks the same graph; docs and unit tests guard psr4_static. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
force-pushed
the
agent/issue-154-multi-tu-phase2
branch
from
May 31, 2026 13:54
fed66f8 to
3d0f3a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PhpcBuild::resolveGraphIncludePaths()sophpc build --projectand tests share one ProjectGraph include resolver (core wiring landed in AOT: phpc build --project uses ProjectGraph PSR-4 discovery (#1762) #3854 / AOT: Dynamic require/include discovery for project build (phase 2 of #154) #1762).phpc lint --projectwalks the sameProjectGraph::resolve()graph instead of ad-hoc PSR-4 directory scans.Psr4StaticBuildProjectTest— dry-run /--list-unitsontest/fixtures/aot/projects/psr4_staticdiscoverssrc/Greeter.phpwithout manualincludes[].php-src reference
N/A (AOT linker / project graph). PSR-4 walk is analogous to the file set OPcache preload would load from a class map.
Verification
Output:
Closes #154
Made with Cursor