Skip to content

Commit 49e493e

Browse files
committed
Add vimeo/psalm
1 parent d63ed0f commit 49e493e

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"require-dev": {
2929
"httpsoft/http-request": "^1.0",
3030
"phpunit/phpunit": "^9.1",
31-
"squizlabs/php_codesniffer": "^3.5"
31+
"squizlabs/php_codesniffer": "^3.5",
32+
"vimeo/psalm": "^3.12"
3233
},
3334
"autoload": {
3435
"psr-4": {
@@ -42,10 +43,12 @@
4243
},
4344
"scripts": {
4445
"test": "phpunit --colors=always",
46+
"static": "psalm",
4547
"cs-check": "phpcs",
4648
"cs-fix": "phpcbf",
4749
"check": [
4850
"@cs-check",
51+
"@static",
4952
"@test"
5053
]
5154
}

psalm.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
totallyTyped="true"
4+
resolveFromConfigFile="true"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns="https://getpsalm.org/schema/config"
7+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
>
9+
<projectFiles>
10+
<directory name="src" />
11+
<ignoreFiles>
12+
<directory name="vendor" />
13+
</ignoreFiles>
14+
</projectFiles>
15+
16+
<issueHandlers>
17+
<MixedArrayOffset errorLevel="info" />
18+
<MixedReturnTypeCoercion errorLevel="info" />
19+
</issueHandlers>
20+
</psalm>

0 commit comments

Comments
 (0)