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