|
19 | 19 | } |
20 | 20 | ], |
21 | 21 | "require": { |
22 | | - "php": ">=8.0", |
23 | | - "symfony/validator": "^6.0|^7.0" |
| 22 | + "php": ">=8.4", |
| 23 | + "symfony/validator": "^7.0|^8.0" |
24 | 24 | }, |
25 | 25 | "require-dev": { |
26 | | - "bamarni/composer-bin-plugin": "^1.3", |
27 | | - "captainhook/plugin-composer": "^5.0", |
28 | | - "phpunit/phpunit": "^10.0", |
29 | | - "mockery/mockery": "^1.0" |
| 26 | + "captainhook/captainhook-phar": "^5.0", |
| 27 | + "captainhook/hook-installer": "^1.0", |
| 28 | + "phpunit/phpunit": "^12.0", |
| 29 | + "mockery/mockery": "^1.0", |
| 30 | + "symfony/finder": "^8.0", |
| 31 | + "symfony/process": "^8.0" |
30 | 32 | }, |
31 | 33 | "config": { |
32 | 34 | "sort-packages": false, |
33 | 35 | "allow-plugins": { |
34 | | - "bamarni/composer-bin-plugin": true, |
35 | | - "captainhook/plugin-composer": true |
| 36 | + "captainhook/captainhook-phar": true, |
| 37 | + "captainhook/hook-installer": true |
| 38 | + } |
| 39 | + }, |
| 40 | + "extra": { |
| 41 | + "captainhook": { |
| 42 | + "config": "tools/captainhook.json" |
36 | 43 | } |
37 | 44 | }, |
38 | 45 | "autoload": { |
|
47 | 54 | } |
48 | 55 | }, |
49 | 56 | "scripts": { |
50 | | - "phpstan": "vendor/bin/phpstan analyse", |
51 | | - "phpstan_full": "vendor/bin/phpstan clear-result-cache && vendor/bin/phpstan analyse", |
52 | | - "phpstan_base": "vendor/bin/phpstan analyse --generate-baseline", |
53 | | - "psalm": "vendor/bin/psalm --show-info=false", |
54 | | - "psalm_full": "vendor/bin/psalm --clear-cache && vendor/bin/psalm --show-info=false", |
55 | | - "psalm_base": "vendor/bin/psalm --set-baseline=psalm-baseline.xml", |
56 | | - "phpunit": "vendor/bin/phpunit --colors=always", |
57 | | - "phpunit_clover": "vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml", |
58 | | - "coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html tests/_reports", |
59 | | - "phpcs": "vendor/bin/phpcs --standard=ruleset.xml --extensions=php --cache=.phpcs-cache --ignore=src/Cascade.php --colors src tests", |
60 | | - "phpcsfix": "vendor/bin/phpcbf --standard=ruleset.xml --extensions=php --cache=.phpcs-cache --ignore=src/Cascade.php src tests", |
61 | | - "binupdate": "@composer bin all update --ansi", |
62 | | - "bininstall": "@composer bin all install --ansi" |
| 57 | + "phpstan": "vendor-bin/phpstan/vendor/bin/phpstan analyse --configuration=tools/phpstan.neon", |
| 58 | + "phpstan_full": "rm -Rf tools/cache/phpstan && vendor-bin/phpstan/vendor/bin/phpstan analyse --configuration=tools/phpstan.neon", |
| 59 | + "phpstan_base": "vendor-bin/phpstan/vendor/bin/phpstan analyse --configuration=tools/phpstan.neon --generate-baseline=tools/phpstan-baseline.php", |
| 60 | + "psalm": "vendor-bin/psalm/vendor/bin/psalm --config=tools/psalm.xml --show-info=false", |
| 61 | + "psalm_full": "vendor-bin/psalm/vendor/bin/psalm --config=tools/psalm.xml --clear-cache && vendor-bin/psalm/vendor/bin/psalm --config=tools/psalm.xml --show-info=false", |
| 62 | + "psalm_base": "vendor-bin/psalm/vendor/bin/psalm --config=tools/psalm.xml --set-baseline=tools/psalm-baseline.xml", |
| 63 | + "phpunit": "vendor/bin/phpunit --configuration=tools/phpunit.xml.dist --colors=always", |
| 64 | + "phpunit_clover": "vendor/bin/phpunit --configuration=tools/phpunit.xml.dist --coverage-text --coverage-clover build/logs/clover.xml", |
| 65 | + "coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=tools/phpunit.xml.dist --coverage-html=tests/_reports", |
| 66 | + "phpcs": "vendor-bin/phpcs/vendor/bin/phpcs --standard=tools/ruleset.xml --extensions=php --cache=tools/cache/.phpcs-cache --colors src tests", |
| 67 | + "phpcs_diff": "vendor-bin/phpcs/vendor/bin/phpcs -s --standard=tools/ruleset.xml --extensions=php --cache=tools/cache/.phpcs-cache --colors src tests", |
| 68 | + "phpcs_fix": "vendor-bin/phpcs/vendor/bin/phpcbf --standard=tools/ruleset.xml --extensions=php --cache=tools/cache/.phpcs-cache --colors src tests", |
| 69 | + "binupdate": "bin/vendorbin update", |
| 70 | + "binoutdated": "bin/vendorbin outdated" |
63 | 71 | } |
64 | 72 | } |
0 commit comments