Skip to content

chore(MSP-5160): run phpstan under Infection as a mutant killer, in addition to PHPUnit - #709

Merged
Maks Rafalko (maks-rafalko) merged 1 commit into
ticket/MSP-5160-infection-2from
ticket/MSP-5160-infection-3
Aug 14, 2026
Merged

chore(MSP-5160): run phpstan under Infection as a mutant killer, in addition to PHPUnit#709
Maks Rafalko (maks-rafalko) merged 1 commit into
ticket/MSP-5160-infection-2from
ticket/MSP-5160-infection-3

Conversation

@maks-rafalko

Copy link
Copy Markdown
Contributor

See https://infection.github.io/guide/static-analysis-integration.html

In a nutshell: this will help killing more mutants if they violate PHPStan rules but don't trigger PHPUnit tests failures

Comment thread phpstan.neon
paths:
- ./src
- ./tests
- ./rector.php

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

move folders/files to analyze to PHPStan config from command line to let Infection reuse those without duplicating it anywhere else

@maks-rafalko
Maks Rafalko (maks-rafalko) marked this pull request as ready for review August 14, 2026 14:10
… addition to PHPUnit

See https://infection.github.io/guide/static-analysis-integration.html

In a nutshell: this will help killing more mutants if they violate PHPStan rules but don't trigger PHPUnit tests failures
@maks-rafalko
Maks Rafalko (maks-rafalko) added this pull request to the merge queue Aug 14, 2026
Merged via the queue into master with commit c61a712 Aug 14, 2026
9 of 15 checks passed
@maks-rafalko
Maks Rafalko (maks-rafalko) deleted the ticket/MSP-5160-infection-3 branch August 14, 2026 14:52
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