Skip to content

Commit b482cad

Browse files
author
Bastian Schwarz
committed
Adding condition to run compsoer-require-checker only in PHP8.2 or higher
1 parent 35d2663 commit b482cad

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.idea/platform.di.iml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"phpunit": "XDEBUG_MODE=coverage tools/phpunit.phar -c test/phpunit.dist.xml test/",
4242
"psalm": "XDEBUG_MODE=off tools/psalm --threads=10 --long-progress",
4343
"composer-unused": "XDEBUG_MODE=off tools/composer-unused --no-progress --no-interaction",
44-
"composer-require-checker": "XDEBUG_MODE=off tools/composer-require-checker --no-interaction",
44+
"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'",
4545
"infection": "XDEBUG_MODE=coverage tools/infection --min-msi=100 --min-covered-msi=100 --threads=4 --no-progress --show-mutations",
4646
"phive:update": "XDEBUG_MODE=off phive update && git add tools/* phive.xml && git commit tools/* -m 'Updated phive dependencies'",
4747
"ci-all": [

0 commit comments

Comments
 (0)