Skip to content

Commit

Permalink
Merge branch 'main' into 2.x
Browse files Browse the repository at this point in the history
* main:
  minor SymfonyCasts#325 [dx] keep tooling in one place
  • Loading branch information
jrushlow committed Jun 12, 2024
2 parents 308d8eb + f121481 commit f2e0e39
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"symfony/framework-bundle": "^6.4.5 | ^7.0",
"symfony/phpunit-bridge": "^6.4.5 | ^7.0",
"doctrine/doctrine-bundle": "^2.8",
"phpstan/phpstan": "^1.11.x-dev",
"symfony/process": "^6.4 | ^7.0 | ^7.1"
},
"autoload": {
Expand All @@ -31,6 +30,17 @@
}
},
"scripts": {
"phpstan": "vendor/bin/phpstan"
"tools:upgrade": [
"@tools:upgrade:php-cs-fixer",
"@tools:upgrade:phpstan"
],
"tools:upgrade:php-cs-fixer": "composer upgrade -W -d tools/php-cs-fixer",
"tools:upgrade:phpstan": "composer upgrade -W -d tools/phpstan",
"tools:run": [
"@tools:run:php-cs-fixer",
"@tools:run:phpstan"
],
"tools:run:php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix",
"tools:run:phpstan": "tools/phpstan/vendor/bin/phpstan --memory-limit=1G"
}
}
2 changes: 2 additions & 0 deletions tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/vendor
**/composer.lock
5 changes: 5 additions & 0 deletions tools/php-cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"friendsofphp/php-cs-fixer": "^3"
}
}
5 changes: 5 additions & 0 deletions tools/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"phpstan/phpstan": "^1"
}
}

0 comments on commit f2e0e39

Please sign in to comment.