Conversation
…esolution Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…n rules 5-7 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Its only remaining src/ caller was resolveClassName, which now inlines the resolved-name attribute read. Test coverage moves to resolveClassName. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #486 +/- ##
=========================================
Coverage 99.39% 99.39%
- Complexity 1864 1865 +1
=========================================
Files 133 133
Lines 4785 4788 +3
=========================================
+ Hits 4756 4759 +3
Misses 29 29 ☔ View full report in Codecov by Harness. |
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.
Step 28 of
docs/architecture/build-manifest.md.Done
Xinnamespace App; const X = 1; echo X;answer —HoverHandlerTest::testHoverOnNamespacedConstant,DefinitionHandlerTest::testGoToNamespacedConstantDefinition(fixture:tests/Fixtures/src/Resolution/NamespacedConstant.php)PHP_INT_MAXin a namespaced file with nouse constanswer — the global-fallback path is exercised throughFIXTURE_HELPER_DEFINED(a userland global constant with a source location, so definition can assert a target):HoverHandlerTest::testHoverOnGlobalConstantFromNamespacedFile,DefinitionHandlerTest::testGoToGlobalConstantDefinitionFromNamespacedFileresolveConstFetchhas no directlookupConstantcall that bypasses the candidate loop — enforced bydisallowedMethodCallsinphpstan.neon(allowlist restricted tosrc/Resolution/ExpressionResolver.phpplus the composite delegation site)Tightening
Beyond the row's spec, made
ScopeFinder::resolveNameprivate. It had one remainingsrc/caller (resolveClassName, which now inlines the resolved-name attribute read). This shuts the door on future non-class name resolution bypassingNameContextby going through the rawresolvedNameattribute.