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

DEP Bump minimum version of phpstan #14

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Dec 18, 2024

Issue silverstripe/.github#349

Fixes https://github.com/silverstripe/silverstripe-standards/actions/runs/12342606211/job/34442740587

phpstan 1.12.6 seems to cause some things to be double counted, I'm not sure why

At a practical level, there's no real any harm in doing the double counting, and I have no idea how to stop it from happening since phpstan is what's doing the counting.

The other approach here is to simply lock the version to 1.12.5, though I'd prefer to just continue to use a caret. We need to bump the minimum version so that the --prefer-lowest build continues to pass in CI

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

I suspect this is a result of running over both the ClassConstFetch (or other fetch/call) node and the Name node. But probably no worth the time required to resolve it since like you say it's not actually doing any harm.

So long as we continue to catch errors and not have false negatives, I'm okay with it.

composer.json Outdated Show resolved Hide resolved
tests/PHPStan/KeywordSelfRuleTest.php Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/1.2/broken-builds branch from f9788b3 to c5fc2ca Compare December 19, 2024 22:54
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit bf0c60f into silverstripe:1.2 Dec 19, 2024
8 checks passed
@GuySartorelli GuySartorelli deleted the pulls/1.2/broken-builds branch December 19, 2024 23:33
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.

2 participants