Implement NodeScopeResolverTestPHPVersionMutator#62
Draft
staabm wants to merge 1 commit into
Draft
Conversation
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.
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.0into<?php // lint >= 7.4, so we can see whether the test contains the lowest minimum version possible.