Skip to content

Commit

Permalink
Add Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Jul 11, 2020
1 parent 188f5fd commit 64090df
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -25,7 +25,9 @@
"laravel/dusk": "~5.0",
"mockery/mockery": "^1.1",
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "9.*"
"phpunit/phpunit": "9.*",
"psalm/plugin-laravel": "^1.3",
"vimeo/psalm": "^3.12"
},
"autoload": {
"psr-4": {
Expand All @@ -39,6 +41,7 @@
}
},
"scripts": {
"psalm": "vendor/bin/psalm",
"test": "vendor/bin/phpunit"
},
"config": {
Expand Down
24 changes: 24 additions & 0 deletions psalm.xml
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<psalm
errorLevel="4"
findUnusedVariablesAndParams="true"
resolveFromConfigFile="true"
useDocblockPropertyTypes="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>

<issueHandlers>
</issueHandlers>

<plugins>
<pluginClass class="Psalm\LaravelPlugin\Plugin"/>
</plugins>
</psalm>

0 comments on commit 64090df

Please sign in to comment.