Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

485: Include output from Psalm in report when mutatnt killed by stati… #490

Open
wants to merge 2 commits into
base: 1.35.x
Choose a base branch
from

Conversation

bdsl
Copy link

@bdsl bdsl commented Dec 2, 2023

…c analysis

See #485

image

@bdsl bdsl force-pushed the 485-include-psalm-output-in-report branch 2 times, most recently from ae4c267 to 8811d56 Compare December 2, 2023 12:01
@bdsl bdsl force-pushed the 485-include-psalm-output-in-report branch from 8811d56 to f0265a0 Compare December 2, 2023 13:04
Comment on lines +17 to +19
* @psalm-suppress InternalProperty - we use Psalm's internal IssueData class here. Afaik the only other way to
* display details of the issues would be to use one of the subclasses of \Psalm\Report, but I think none are exactly
* what we want. Probably we can accept the risk of Psalm's internals changing and breaking this.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orklah how stable is this stuff? Just want to see if we need to pin to psalm at patch level, from now on 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also happy to have a go at using one of the subclasses of https://github.com/vimeo/psalm/blob/5.x/src/Psalm/Report.php to avoid the InternalProperty access.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we pin to the patch version of infection/infection because we want to prevent inadverted BC breaks.

If we can avoid depending on @internal in Psalm, we could avoid having to do it for vimeo/psalm

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, Psalm's internals are not easily accessible. We added @internal mainly to have some support for BC breaks checks.

Psalm is not moving very fast currently so the risk of things breaking is low though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants