Repository navigation
Select versioned extension stubs - #6250
Merged
Merged
Conversation
Closed
2 of 4 tasks
simPod
force-pushed
the
feat/ext-ds-v2-stubs
branch
2 times, most recently
from
August 24, 2026 13:13
987a117 to
b69977f
Compare
ondrejmirtes
force-pushed
the
feat/ext-ds-v2-stubs
branch
from
September 15, 2026 16:19
b69977f to
1cd4347
Compare
ondrejmirtes
marked this pull request as ready for review
September 15, 2026 16:20
Collaborator
|
This pull request has been marked as ready for review. |
ondrejmirtes
force-pushed
the
feat/ext-ds-v2-stubs
branch
2 times, most recently
from
September 15, 2026 18:45
d6de075 to
c3ff432
Compare
Detect the major version of extensions with versioned PhpStorm stub maps (ext-ds 1 vs 2) from the project's composer.json platform config, its require constraint, or the loaded extension, and pass it to PhpStormStubsSourceStubber. The ext-ds 1 stub overlay is only loaded for ds 1, and the detected versions are part of the internal stubs cache key. In the result cache, files using built-in symbols of such an extension record a dependency on its platform package (ext-<name>) next to their Composer package dependencies. A different selected version then re-analyses only those files and the files with errors instead of the whole project. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ondrejmirtes
force-pushed
the
feat/ext-ds-v2-stubs
branch
from
September 15, 2026 19:51
c3ff432 to
5ae5357
Compare
Member
|
Thank you! |
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.
Adds Composer-based extension-major selection for PhpStorm stubs.
Uses the selected map for internal reflection, keeps cache entries separate by selection, and applies the ext-ds v1 overlay only when no versioned ext-ds map is selected.