Skip to content

Commit

Permalink
feat: setup phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
shavounet committed Oct 13, 2023
1 parent 842f841 commit aa77c7a
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ jobs:
coverage: xdebug2
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }}
- run: bin/atoum

phpstan:
name: PHPStan checks
runs-on: ubuntu-20.04
strategy:
matrix:
version: [ 8.1, 8.2 ]
flags: [ '', '--prefer-lowest' ]
fail-fast: false
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
coverage: xdebug2
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }}
- run: bin/phpstan
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"atoum/stubs": "*",
"m6web/php-cs-fixer-config": "3.2.0",
"friendsofphp/php-cs-fixer": "3.35.1",
"guzzlehttp/promises": "^2"
"guzzlehttp/promises": "^2",
"phpstan/phpstan": "1.10.38",
"phpstan/phpstan-symfony": "1.3.4"
},
"autoload": {
"psr-4": {"M6Web\\Bundle\\GuzzleHttpBundle\\": "src/"}
Expand Down
1 change: 1 addition & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading

0 comments on commit aa77c7a

Please sign in to comment.