Skip to content

Commit 382f04a

Browse files
committed
Add support for PHP 8.4
1 parent 8f698c9 commit 382f04a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

composer.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"homepage": "https://github.com/selective-php/test-traits",
1313
"require": {
14-
"php": "^8.0"
14+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
1515
},
1616
"require-dev": {
1717
"friendsofphp/php-cs-fixer": "^3",
@@ -36,18 +36,21 @@
3636
"sort-packages": true
3737
},
3838
"scripts": {
39-
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi",
40-
"cs:fix": "php-cs-fixer fix --config=.cs.php --ansi",
39+
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --config=.cs.php --ansi",
40+
"cs:fix": "php-cs-fixer fix --config=.cs.php --ansi --verbose",
4141
"sniffer:check": "phpcs --standard=phpcs.xml",
4242
"sniffer:fix": "phpcbf --standard=phpcs.xml",
43-
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi --xdebug",
44-
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always",
43+
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi",
44+
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --no-coverage",
4545
"test:all": [
4646
"@cs:check",
4747
"@sniffer:check",
4848
"@stan",
4949
"@test"
5050
],
51-
"test:coverage": "php -d xdebug.mode=coverage -r \"require 'vendor/bin/phpunit';\" -- --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
51+
"test:coverage": [
52+
"@putenv XDEBUG_MODE=coverage",
53+
"phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text"
54+
]
5255
}
5356
}

0 commit comments

Comments
 (0)