Repository navigation
Support Psalm 7 - #20
Merged
Merged
Conversation
v2 caps symfony/filesystem at ^5, which blocks installing Psalm 6.14+ and Psalm 7.
- build TKeyedArray through make(): Psalm 7 made the constructor private (make() exists since Psalm 6.19) - build TClosure through Type::getClosure(): Psalm 7 dropped the constructor's leading $value parameter - add #[Override] attributes, required by self-analysis on Psalm 6.19+ - run static analysis against both Psalm 6 and 7
PSL requires PHP 8.4, so CI runs on 8.4.
Collaborator
|
Looks good, thanks! |
Closed
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.
🤖
The
>=5.16constraint lets the plugin install with Psalm 7, and Psalm 7 then crashes on the firstType\shape()call:Regex\capture_groups()andFun\pipe()crash too. Psalm 7 made theTKeyedArrayconstructor private and removed the$valueparameter ofTClosure.I switched to
TKeyedArray::make()(available since Psalm 6.19) andType::getClosure(), so the plugin now supports^6.19 || ^7. Inferred types are unchanged. Older Psalm versions keep getting 2.4.0.To get CI running on these versions:
#[Override], which newer Psalm requires.tests/types) and run them against Psalm 6 and 7 on PHP 8.4, which PSL 6 needs.The static analysis workflow is disabled for inactivity and needs re-enabling in the Actions tab.