Skip to content

Commit acb1cce

Browse files
author
Bastian Schwarz
committed
Added php version check for infection
1 parent b482cad commit acb1cce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"psalm": "XDEBUG_MODE=off tools/psalm --threads=10 --long-progress",
4343
"composer-unused": "XDEBUG_MODE=off tools/composer-unused --no-progress --no-interaction",
4444
"composer-require-checker": "php -r 'exit((int) !(PHP_VERSION_ID >= 80400));' && XDEBUG_MODE=off tools/composer-require-checker --no-interaction || echo 'Skipping composer-require-checker because it needs PHP8.2 or higher'",
45-
"infection": "XDEBUG_MODE=coverage tools/infection --min-msi=100 --min-covered-msi=100 --threads=4 --no-progress --show-mutations",
45+
"infection": "php -r 'exit((int) !(PHP_VERSION_ID >= 80100));' && XDEBUG_MODE=coverage tools/infection --min-msi=100 --min-covered-msi=100 --threads=4 --no-progress --show-mutations || echo 'Skipping infection because it needs PHP8.1 or higher'",
4646
"phive:update": "XDEBUG_MODE=off phive update && git add tools/* phive.xml && git commit tools/* -m 'Updated phive dependencies'",
4747
"ci-all": [
4848
"composer validate",

0 commit comments

Comments
 (0)