Skip to content

Commit c5ddc08

Browse files
committed
Switch from Psalm to PHPStan
1 parent ca7a8ea commit c5ddc08

File tree

4 files changed

+12
-25
lines changed

4 files changed

+12
-25
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
env:
8-
PSALM_PHP_VERSION: "8.5"
8+
PHPSTAN_PHP_VERSION: "8.5"
99
COVERAGE_PHP_VERSION: "8.5"
1010

1111
jobs:
@@ -56,8 +56,8 @@ jobs:
5656
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5757
if: ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
5858

59-
psalm:
60-
name: Psalm
59+
phpstan:
60+
name: PHPStan
6161
runs-on: ubuntu-latest
6262

6363
steps:
@@ -67,13 +67,13 @@ jobs:
6767
- name: Setup PHP
6868
uses: shivammathur/setup-php@v2
6969
with:
70-
php-version: ${{ env.PSALM_PHP_VERSION }}
70+
php-version: ${{ env.PHPSTAN_PHP_VERSION }}
7171

7272
- name: Install composer dependencies
7373
uses: ramsey/composer-install@v3
7474

75-
- name: Run Psalm
76-
run: vendor/bin/psalm --no-progress
75+
- name: Run PHPStan
76+
run: vendor/bin/phpstan --no-progress
7777

7878
coding-standard:
7979
name: Coding Standard

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"require-dev": {
1414
"phpunit/phpunit": "^11.0",
15-
"vimeo/psalm": "6.15.1"
15+
"phpstan/phpstan": "2.1.42"
1616
},
1717
"autoload": {
1818
"psr-4": {

phpstan.neon

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

psalm.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)