Skip to content

Commit ea69342

Browse files
committed
Add psalm
1 parent f0399c0 commit ea69342

File tree

5 files changed

+873
-5
lines changed

5 files changed

+873
-5
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
; top-most EditorConfig file
2+
root = true
3+
4+
# All files.
5+
[*]
6+
end_of_line = LF
7+
indent_style = space
8+
indent_size = 4
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.github/workflows/tests.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.2
17+
php-version: 8.0
1818
extensions: curl, mbstring
1919
coverage: none
2020
tools: composer:v2, cs2pr
@@ -74,7 +74,7 @@ jobs:
7474

7575
- uses: shivammathur/setup-php@v2
7676
with:
77-
php-version: 7.2
77+
php-version: 8.0
7878
extensions: curl
7979
coverage: none
8080
tools: composer:v2
@@ -83,4 +83,22 @@ jobs:
8383

8484
- run: vendor/bin/phpstan analyse --no-progress
8585

86-
- run: vendor/bin/phpstan analyse --no-progress -c phpstan.tests.neon
86+
- run: vendor/bin/phpstan analyse --no-progress -c phpstan.tests.neon
87+
88+
psalm:
89+
name: Psalm
90+
runs-on: ubuntu-latest
91+
92+
steps:
93+
- uses: actions/checkout@v2
94+
95+
- uses: shivammathur/setup-php@v2
96+
with:
97+
php-version: 8.0
98+
extensions: curl
99+
coverage: none
100+
tools: composer:v2
101+
102+
- run: composer update --no-progress
103+
104+
- run: vendor/bin/psalm --no-progress --output-format=github

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"phpstan/phpstan": "^0.12",
2727
"phpstan/phpstan-phpunit": "^0.12.16",
2828
"phpstan/extension-installer": "^1.0",
29-
"scrutinizer/ocular": "^1.8"
29+
"scrutinizer/ocular": "^1.8",
30+
"vimeo/psalm": "^4.4"
3031
},
3132
"autoload-dev": {
3233
"psr-4": {

0 commit comments

Comments
 (0)