|
10 | 10 | ], |
11 | 11 | "homepage": "https://github.com/selective-php/audio-type", |
12 | 12 | "require": { |
13 | | - "php": "^7.3 || ^8.0" |
| 13 | + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" |
14 | 14 | }, |
15 | 15 | "require-dev": { |
16 | 16 | "friendsofphp/php-cs-fixer": "^3", |
17 | | - "phpstan/phpstan": "^1", |
18 | | - "phpunit/phpunit": "^10", |
19 | | - "squizlabs/php_codesniffer": "^3" |
| 17 | + "phpstan/phpstan": "^2", |
| 18 | + "phpunit/phpunit": "^11", |
| 19 | + "squizlabs/php_codesniffer": "^4" |
20 | 20 | }, |
21 | 21 | "autoload": { |
22 | 22 | "psr-4": { |
|
33 | 33 | }, |
34 | 34 | "scripts": { |
35 | 35 | "cs:check": [ |
36 | | - "@putenv PHP_CS_FIXER_IGNORE_ENV=1", |
37 | | - "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi" |
| 36 | + "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes" |
38 | 37 | ], |
39 | 38 | "cs:fix": [ |
40 | | - "@putenv PHP_CS_FIXER_IGNORE_ENV=1", |
41 | | - "php-cs-fixer fix --config=.cs.php --ansi --verbose" |
| 39 | + "php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes" |
42 | 40 | ], |
43 | 41 | "sniffer:check": "phpcs --standard=phpcs.xml", |
44 | 42 | "sniffer:fix": "phpcbf --standard=phpcs.xml", |
45 | 43 | "stan": "phpstan analyse -c phpstan.neon --no-progress --ansi", |
46 | | - "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always", |
| 44 | + "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations", |
47 | 45 | "test:all": [ |
48 | 46 | "@cs:check", |
49 | 47 | "@sniffer:check", |
50 | 48 | "@stan", |
51 | 49 | "@test" |
52 | 50 | ], |
53 | | - "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 | + ] |
54 | 55 | } |
55 | 56 | } |
0 commit comments