Skip to content

Commit 1e23c10

Browse files
committed
Switch to static analysis and add phpstan symfony req
1 parent 1937753 commit 1e23c10

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/continuous-integration.yml

-3
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,5 @@ jobs:
104104
dependency-versions: "${{ matrix.dependency-versions }}"
105105
composer-options: "${{ matrix.composer-options }}"
106106

107-
- name: "Run PHPStan"
108-
run: "vendor/bin/phpstan analyse --no-progress"
109-
110107
- name: "Run PHPUnit"
111108
run: "composer test"

.github/workflows/static-analysis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
steps:
1717
- name: "Checkout"
1818
uses: "actions/checkout@v3"
19+
- name: PHPStan
20+
uses: "docker://oskarstark/phpstan-ga"
21+
env:
22+
REQUIRE_DEV: true
23+
with:
24+
args: analyze --no-progress
1925
- name: "PHP-CS-Fixer"
2026
uses: "docker://oskarstark/php-cs-fixer-ga:2.19.0"
2127
with:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"php-http/cache-plugin": "^1.7",
5858
"php-http/mock-client": "^1.2",
5959
"php-http/promise": "^1.0",
60-
"phpstan/phpstan": "^1.11",
60+
"phpstan/phpstan-symfony": "^1.2",
6161
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0",
6262
"symfony/cache": "^5.4 || ^6.0 || ^7.0",
6363
"symfony/dom-crawler": "^5.4 || ^6.0 || ^7.0",

0 commit comments

Comments
 (0)