1- IS_PHP8 : =$(shell php -r 'echo (int) version_compare(PHP_VERSION, "8.0 ", ">=");')
1+ IS_PHP81 : =$(shell php -r 'echo (int) version_compare(PHP_VERSION, "8.1 ", ">=");')
22
33default : build
44
@@ -27,7 +27,7 @@ test: vendor cs deptrac phpunit infection
2727test-min : update-min cs deptrac phpunit infection
2828.PHONY : test-min
2929
30- ifeq ($(IS_PHP8 ) ,1)
30+ ifeq ($(IS_PHP81 ) ,1)
3131test-package :
3232else
3333test-package : package test-package-tools
@@ -36,15 +36,15 @@ endif
3636.PHONY : test-package
3737
3838
39- ifeq ($(IS_PHP8 ) ,1)
39+ ifeq ($(IS_PHP81 ) ,1)
4040cs :
4141else
4242cs : tools/php-cs-fixer
4343 PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi --diff fix
4444endif
4545.PHONY : cs
4646
47- ifeq ($(IS_PHP8 ) ,1)
47+ ifeq ($(IS_PHP81 ) ,1)
4848cs-fix :
4949else
5050cs-fix : tools/php-cs-fixer
@@ -53,14 +53,14 @@ endif
5353.PHONY : cs-fix
5454
5555deptrac : tools/deptrac
56- tools/deptrac --no-interaction --ansi --formatter-graphviz-display=0
56+ tools/deptrac --no-interaction --ansi
5757.PHONY : deptrac
5858
59- ifeq ($(IS_PHP8 ) ,1)
59+ ifeq ($(IS_PHP81 ) ,1)
6060infection :
6161else
6262infection : tools/infection tools/infection.pubkey
63- phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=95 --min-covered-msi=95 --only-covered --ansi
63+ phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=100 --min-covered-msi=100 --only-covered --ansi
6464endif
6565.PHONY : infection
6666
8181 find tests/phar/tools -not -path ' */\.*' -type f -delete
8282.PHONY : clean
8383
84- ifeq ($(IS_PHP8 ) ,1)
84+ ifeq ($(IS_PHP81 ) ,1)
8585package :
8686else
8787package : tools/box
@@ -93,7 +93,7 @@ package: tools/box
9393
9494 cd build/phar && \
9595 composer remove phpunit/phpunit --no-update && \
96- composer config platform.php 7.4 && \
96+ composer config platform.php 8.0 && \
9797 composer update --no-dev -o -a
9898
9999 tools/box compile
@@ -113,16 +113,16 @@ tools/php-cs-fixer:
113113 curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
114114
115115tools/deptrac :
116- curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.10.0 /deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
116+ curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.19.1 /deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
117117
118118tools/infection : tools/infection.pubkey
119- curl -Ls https://github.com/infection/infection/releases/download/0.20 .2/infection.phar -o tools/infection && chmod +x tools/infection
119+ curl -Ls https://github.com/infection/infection/releases/download/0.26 .2/infection.phar -o tools/infection && chmod +x tools/infection
120120
121121tools/infection.pubkey :
122- curl -Ls https://github.com/infection/infection/releases/download/0.20 .2/infection.phar.pubkey -o tools/infection.pubkey
122+ curl -Ls https://github.com/infection/infection/releases/download/0.26 .2/infection.phar.pubkey -o tools/infection.pubkey
123123
124124tools/box :
125- curl -Ls https://github.com/humbug/box/releases/download/3.10 .0/box.phar -o tools/box && chmod +x tools/box
125+ curl -Ls https://github.com/humbug/box/releases/download/3.14 .0/box.phar -o tools/box && chmod +x tools/box
126126
127127tests/phar/tools/phpunit :
128128 curl -Ls https://phar.phpunit.de/phpunit-9.phar -o tests/phar/tools/phpunit && chmod +x tests/phar/tools/phpunit
0 commit comments