Skip to content

Commit 2ad96e9

Browse files
committed
update configs
1 parent c883eda commit 2ad96e9

File tree

7 files changed

+533
-457
lines changed

7 files changed

+533
-457
lines changed

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ console:
55
composer exec --verbose psysh
66

77
lint:
8-
composer exec --verbose phpcs -- --standard=PSR12 src tests
8+
composer exec --verbose phpcs -- src tests
99
composer exec --verbose phpstan
1010

1111
lint-fix:
12-
composer exec --verbose phpcbf -- --standard=PSR12 src tests
12+
composer exec --verbose phpcbf -- src tests
1313

1414
test:
1515
composer exec --verbose phpunit tests

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ cd php-package
2525
make install
2626
```
2727

28+
## Run linter
29+
30+
```sh
31+
make lint
32+
```
33+
34+
See configs [php.xml](./phpcs.xml) and [phpstan.neon](./phpstan.neon)
35+
2836
## Run tests
2937

3038
```sh

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "hexlet/php-package",
3-
"bin": ["bin/php-package"],
3+
"version": "0.0.1",
4+
"bin": [
5+
"bin/php-package"
6+
],
47
"type": "library",
58
"authors": [
69
{
@@ -24,17 +27,17 @@
2427
}
2528
},
2629
"require": {
27-
"illuminate/collections": "^11.0",
28-
"nesbot/carbon": "^3.0",
29-
"symfony/string": "^7.0",
30-
"phpstan/phpstan": "^1.10"
30+
"illuminate/collections": "^12.0",
31+
"nesbot/carbon": "^3.8",
32+
"symfony/string": "^7.2",
33+
"phpstan/phpstan": "^2.1"
3134
},
3235
"require-dev": {
3336
"psy/psysh": "@stable",
34-
"phpstan/phpstan-phpunit": "^1.3",
37+
"phpstan/phpstan-phpunit": "^2.0",
3538
"phpstan/extension-installer": "^1.3",
36-
"symfony/var-dumper": "^7.0",
37-
"phpunit/phpunit": "^11.0",
39+
"symfony/var-dumper": "^7.2",
40+
"phpunit/phpunit": "^11.5",
3841
"squizlabs/php_codesniffer": "*"
3942
},
4043
"config": {

0 commit comments

Comments
 (0)