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

Additional PHPUnit 10 compatibility fixes #1923

Merged
merged 15 commits into from
Mar 19, 2024

Conversation

sanmai
Copy link
Member

@sanmai sanmai commented Mar 19, 2024

This PR:

I'm looking to reduce the diff from #1921 to the bare minimum so we can investigate it further.

@sanmai sanmai marked this pull request as ready for review March 19, 2024 15:59
@sanmai sanmai enabled auto-merge (squash) March 19, 2024 16:00
@sanmai sanmai merged commit a014222 into infection:master Mar 19, 2024
55 checks passed
use PHPUnit\Framework\Constraint\Callback;
use PHPUnit\Framework\Constraint\Constraint;

trait PHPUnitConvecutiveReplacement
Copy link
Member

Choose a reason for hiding this comment

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

  • typo: PHPUnitConvecutiveReplacement -> PHPUnitConsecutiveReplacement?
  • why does hthis need to be a trait if the only thing it contains is a static method? This could very well be a class with a private constructor (there is self::assert* but that could be fixed by using PHPUnit Assertion directly)
  • might warrant some docs? This is a very confusing piece of code IMO

Also might warrant some docs?

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