Skip to content

Commit b485763

Browse files
PHPStan 1 → 2 (#1147)
1 parent 9befc18 commit b485763

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: Run tests
8181
run: |
82-
vendor/bin/phpstan analyze src/ tests/ --level=1 --memory-limit=1G
82+
vendor/bin/phpstan --memory-limit=1G
8383
vendor/bin/phpunit -c phpunit.xml --exclude-group skip_for_solr_${{ matrix.mode }} --coverage-clover build/logs/clover.xml
8484
8585
- name: Execute examples

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"escapestudios/symfony2-coding-standard": "^3.11",
2828
"nyholm/psr7": "^1.8",
2929
"php-http/guzzle7-adapter": "^1.0",
30-
"phpstan/extension-installer": "^1.0",
31-
"phpstan/phpstan": "^1.0",
32-
"phpstan/phpstan-deprecation-rules": "^1.0",
33-
"phpstan/phpstan-phpunit": "^1.0",
30+
"phpstan/extension-installer": "^1.4",
31+
"phpstan/phpstan": "^2.1",
32+
"phpstan/phpstan-deprecation-rules": "^2.0",
33+
"phpstan/phpstan-phpunit": "^2.0",
3434
"phpunit/phpunit": "^10.5",
3535
"rawr/phpunit-data-provider": "^3.3",
3636
"roave/security-advisories": "dev-master",

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: 1
3+
paths:
4+
- src
5+
- tests

0 commit comments

Comments
 (0)