1616 }
1717 ],
1818 "require" : {
19- "php" : " >=8.0 " ,
19+ "php" : " >=8.2 " ,
2020 "ext-mbstring" : " *"
2121 },
2222 "require-dev" : {
23- "bamarni/composer-bin-plugin" : " ^1.3" ,
24- "captainhook/plugin-composer" : " ^5.0" ,
25- "phpunit/phpunit" : " ^9.0"
23+ "captainhook/captainhook-phar" : " ^5.0" ,
24+ "captainhook/hook-installer" : " ^1.0" ,
25+ "phpunit/phpunit" : " ^11.4" ,
26+ "symfony/finder" : " ^7.0" ,
27+ "symfony/process" : " ^7.0"
2628 },
2729 "config" : {
28- "sort-packages" : false
30+ "sort-packages" : false ,
31+ "allow-plugins" : {
32+ "captainhook/captainhook-phar" : true ,
33+ "captainhook/hook-installer" : true
34+ }
35+ },
36+ "extra" : {
37+ "captainhook" : {
38+ "config" : " tools/captainhook.json"
39+ }
2940 },
3041 "autoload" : {
3142 "psr-4" : {
3849 }
3950 },
4051 "scripts" : {
41- "phpstan" : " vendor/bin/phpstan analyse" ,
42- "phpstan_full" : " vendor/bin/phpstan clear-result-cache && vendor/bin/phpstan analyse" ,
43- "phpstan_base" : " vendor/bin/phpstan analyse --configuration=phpstan.neon --generate-baseline=phpstan-baseline.neon" ,
44- "psalm" : " vendor/bin/psalm --show-info=false" ,
45- "psalm_full" : " vendor/bin/psalm --clear-cache && vendor/bin/psalm --show-info=false" ,
46- "psalm_base" : " vendor/bin/psalm --set-baseline=psalm-baseline.xml" ,
47- "phpunit" : " vendor/bin/phpunit --colors=always" ,
48- "phpunit_clover" : " vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml" ,
49- "phpcs" : " vendor/bin/phpcs --standard=ruleset.xml --extensions=php --cache src tests" ,
50- "phpcsfix" : " vendor/bin/phpcbf --standard=ruleset.xml --extensions=php --cache src tests" ,
51- "coverage" : " XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html tests/_reports" ,
52- "binupdate" : " @composer bin all update --ansi" ,
53- "bininstall" : " @composer bin all install --ansi"
52+ "captainhook_install" : " vendor/bin/captainhook install --configuration=tools/captainhook.json --ansi --no-interaction" ,
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+ "phpunit_clover" : " vendor/bin/phpunit --configuration=tools/phpunit.xml.dist --coverage-text --coverage-clover build/logs/clover.xml" ,
61+ "coverage" : " XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=tools/phpunit.xml.dist --coverage-html=tests/_reports" ,
62+ "phpcs" : " vendor-bin/phpcs/vendor/bin/phpcs --standard=tools/ruleset.xml --extensions=php --cache=tools/cache/.phpcs-cache --colors src tests" ,
63+ "phpcs_diff" : " vendor-bin/phpcs/vendor/bin/phpcs -s --standard=tools/ruleset.xml --extensions=php --cache=tools/cache/.phpcs-cache --colors src tests" ,
64+ "phpcs_fix" : " vendor-bin/phpcs/vendor/bin/phpcbf --standard=tools/ruleset.xml --extensions=php --cache=tools/cache/.phpcs-cache --colors src tests" ,
65+ "binupdate" : " bin/vendorbin update" ,
66+ "binoutdated" : " bin/vendorbin outdated"
5467 }
5568}
0 commit comments