Skip to content

Implement NodeScopeResolverTestPHPVersionMutator#62

Draft
staabm wants to merge 1 commit into
phpstan:1.xfrom
staabm:lint
Draft

Implement NodeScopeResolverTestPHPVersionMutator#62
staabm wants to merge 1 commit into
phpstan:1.xfrom
staabm:lint

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Mar 11, 2026

In PHPStan-src we use test-files which start with a comment, indicating the min-php version required to run the test like <?php // lint >= 7.4.

we want this version to be the lowest possible, which is necessary to run the test (to maximize php version coverage).
since this version is provided by contributors it might not fit this constraint.

now I came up with the idea to let infection mutate <?php // lint >= 8.0 into <?php // lint >= 7.4, so we can see whether the test contains the lowest minimum version possible.

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.

1 participant