Skip to content

Commit f2e0e39

Browse files
committed
Merge branch 'main' into 2.x
* main: minor #325 [dx] keep tooling in one place
2 parents 308d8eb + f121481 commit f2e0e39

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
@@ -17,7 +17,6 @@
1717
"symfony/framework-bundle": "^6.4.5 | ^7.0",
1818
"symfony/phpunit-bridge": "^6.4.5 | ^7.0",
1919
"doctrine/doctrine-bundle": "^2.8",
20-
"phpstan/phpstan": "^1.11.x-dev",
2120
"symfony/process": "^6.4 | ^7.0 | ^7.1"
2221
},
2322
"autoload": {
@@ -31,6 +30,17 @@
3130
}
3231
},
3332
"scripts": {
34-
"phpstan": "vendor/bin/phpstan"
33+
"tools:upgrade": [
34+
"@tools:upgrade:php-cs-fixer",
35+
"@tools:upgrade:phpstan"
36+
],
37+
"tools:upgrade:php-cs-fixer": "composer upgrade -W -d tools/php-cs-fixer",
38+
"tools:upgrade:phpstan": "composer upgrade -W -d tools/phpstan",
39+
"tools:run": [
40+
"@tools:run:php-cs-fixer",
41+
"@tools:run:phpstan"
42+
],
43+
"tools:run:php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix",
44+
"tools:run:phpstan": "tools/phpstan/vendor/bin/phpstan --memory-limit=1G"
3545
}
3646
}

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)