Skip to content

Commit 7cc5a36

Browse files
committed
Update package development tools
1 parent 3cd6d40 commit 7cc5a36

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
/CHANGELOG.md export-ignore
1010
/README.md export-ignore
1111
/phpunit.xml export-ignore
12+
/Makefile export-ignore
1213
/**/*Test.php export-ignore
1314
/**/Test** export-ignore

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22
install:
33
@docker run --rm -it -v$(PWD):/app composer install
44

5+
# make update
6+
update:
7+
@docker run --rm -it -v$(PWD):/app composer update
8+
59
# unit tests
610
phpunit:
7-
@docker run --rm -it -v$(PWD):/app --workdir=/app php:8.1-cli-alpine vendor/bin/phpunit --coverage-text
11+
@docker run --rm -it -v$(PWD):/app composer phpunit
812

913
# phpstan
1014
phpstan:
11-
@docker run --rm -it -v$(PWD):/app --workdir=/app php:8.1-cli-alpine vendor/bin/phpstan analyse -l max -c phpstan.neon src --ansi
15+
@docker run --rm -it -v$(PWD):/app composer phpstan
1216

1317
# coding style fix
1418
phpcs:
15-
@docker run --rm -it -v$(PWD):/app --workdir=/app php:8.1-cli-alpine vendor/bin/php-cs-fixer fix -vvv --allow-risky=yes
19+
@docker run --rm -it -v$(PWD):/app composer phpcs:fix
1620

1721
# test
1822
test:
19-
@docker run --rm -it -v$(PWD):/app --workdir=/app php:8.1-cli-alpine php ./test.php
23+
@docker run --rm -it -v$(PWD):/app composer test
2024

21-
.PHONY: install phpunit phpstan phpcs test
25+
.PHONY: install update phpunit phpstan phpcs test

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"ext-json": "*"
2929
},
3030
"require-dev": {
31-
"friendsofphp/php-cs-fixer": "^v3.5.0",
31+
"friendsofphp/php-cs-fixer": "^v3.8.0",
3232
"httpwg/structured-field-tests": "*@dev",
33-
"phpunit/phpunit": "^9.5.16",
34-
"phpstan/phpstan": "^1.4",
33+
"phpunit/phpunit": "^9.5.20",
34+
"phpstan/phpstan": "^1.5.4",
3535
"phpstan/phpstan-strict-rules": "^1.1",
3636
"phpstan/phpstan-phpunit": "^1.0",
3737
"phpstan/phpstan-deprecation-rules": "^1.0"

0 commit comments

Comments
 (0)