Skip to content

Commit f121481

Browse files
authored
minor #325 [dx] keep tooling in one place
* [dx] keep tooling in one place * we dont need phpstan here anymore
1 parent 8d67b00 commit f121481

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"symfony/phpunit-bridge": "^5.4 | ^6.0 | ^7.0",
1919
"doctrine/doctrine-bundle": "^2.8",
2020
"doctrine/annotations": "^1.0",
21-
"phpstan/phpstan": "^1.11.x-dev",
2221
"symfony/process": "^6.4 | ^7.0 | ^7.1"
2322
},
2423
"autoload": {
@@ -32,6 +31,17 @@
3231
}
3332
},
3433
"scripts": {
35-
"phpstan": "vendor/bin/phpstan"
34+
"tools:upgrade": [
35+
"@tools:upgrade:php-cs-fixer",
36+
"@tools:upgrade:phpstan"
37+
],
38+
"tools:upgrade:php-cs-fixer": "composer upgrade -W -d tools/php-cs-fixer",
39+
"tools:upgrade:phpstan": "composer upgrade -W -d tools/phpstan",
40+
"tools:run": [
41+
"@tools:run:php-cs-fixer",
42+
"@tools:run:phpstan"
43+
],
44+
"tools:run:php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix",
45+
"tools:run:phpstan": "tools/phpstan/vendor/bin/phpstan --memory-limit=1G"
3646
}
3747
}

tools/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/vendor
2+
**/composer.lock

tools/php-cs-fixer/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"friendsofphp/php-cs-fixer": "^3"
4+
}
5+
}

tools/phpstan/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"phpstan/phpstan": "^1"
4+
}
5+
}

0 commit comments

Comments
 (0)