Skip to content

Commit 66ef1e1

Browse files
Upgrade to PHPStan 2.0
1 parent 9f86b09 commit 66ef1e1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/run-tests.yml

+1-1
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 }} -v --coverage-clover build/logs/clover.xml
8484
8585
- name: Execute examples

composer.json

+4-4
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.0",
32+
"phpstan/phpstan-deprecation-rules": "^2.0",
33+
"phpstan/phpstan-phpunit": "^2.0",
3434
"phpunit/phpunit": "^9.6",
3535
"rawr/phpunit-data-provider": "^3.3",
3636
"roave/security-advisories": "dev-master",

phpstan.neon

+5
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)