Skip to content

Commit

Permalink
Add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Oct 3, 2021
1 parent 1647858 commit ac6e0a4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHPStan

on: [push]

jobs:
phpstan:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2

- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: 7.1

- name: Install dependencies
run: composer install --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute PHPStan
run: vendor/bin/phpstan analyse
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0",
"phpstan/phpstan": "^0.12.99",
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"romanzipp/php-cs-fixer-config": "^3.0"
},
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
phpVersion: 70100
level: 6
paths:
- src

0 comments on commit ac6e0a4

Please sign in to comment.