Skip to content

Commit

Permalink
chore: allow phpstan v1
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jul 26, 2024
1 parent e0e1ccb commit 5e0a90c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
coverage: ['pcov']
code-style: ['no']
code-analysis: ['no']
include:
- php-versions: '7.1'
coverage: 'none'
code-style: 'yes'
code-analysis: 'yes'
- php-versions: '8.4'
coverage: 'pcov'
code-style: 'no'
code-analysis: 'yes'
steps:
- name: Checkout
Expand Down Expand Up @@ -51,7 +54,7 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Code Analysis (PHP CS-Fixer)
if: matrix.code-analysis == 'yes'
if: matrix.code-style == 'yes'
run: PHP_CS_FIXER_IGNORE_ENV=true php vendor/bin/php-cs-fixer fix --dry-run --diff

- name: Code Analysis (PHPStan)
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.17.1",
"phpstan/phpstan": "^0.12",
"friendsofphp/php-cs-fixer": "~2.17.1 || ^3.60",
"phpstan/phpstan": "^0.12 || ^1.1",
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6"
},
"scripts": {
"phpstan": [
"phpstan analyse lib tests"
"phpstan analyse lib",
"phpstan analyse tests"
],
"cs-fixer": [
"php-cs-fixer fix"
Expand Down

0 comments on commit 5e0a90c

Please sign in to comment.