Skip to content

Commit

Permalink
add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
khalyomede committed Aug 28, 2021
1 parent 30b9c6d commit f680ee9
Show file tree
Hide file tree
Showing 17 changed files with 3,529 additions and 1,165 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ jobs:
- uses: actions/checkout@v2

# Runs a single command using the runners shell

- name: Install
run: docker-compose run --rm composer install

- name: Linting
run: docker-compose run --rm composer run lint

- name: Analyzing
run: docker-compose run --rm composer run analyse
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,21 @@
"minimum-stability": "stable",
"require": {
"php": ">=7.0.0",
"illuminate/database": "5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*",
"jawira/case-converter": "3.*"
"jawira/case-converter": "3.*",
"laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*"
},
"autoload": {
"psr-4": {
"Khalyomede\\LaravelSeed\\": "src"
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.0.2"
"friendsofphp/php-cs-fixer": "3.0.2",
"phpstan/phpstan": "0.12.96"
},
"scripts": {
"lint": "php-cs-fixer fix --diff --using-cache=no --allow-risky=yes --dry-run",
"format": "php-cs-fixer --using-cache=no --allow-risky=yes fix"
"format": "php-cs-fixer --using-cache=no --allow-risky=yes fix",
"analyse": "phpstan analyse"
}
}
Loading

0 comments on commit f680ee9

Please sign in to comment.