Skip to content

Commit 32be88d

Browse files
committed
Psalm and phpstan configs
Signed-off-by: snipe <[email protected]>
1 parent 219d92d commit 32be88d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

phpstan.neon

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
parameters:
2+
paths:
3+
- app
4+
- resources/views
5+
- resources/lang
6+
- database/migrations
7+
- config
8+
9+
level: 4
10+
11+
ignoreErrors:
12+
- '#Class, interface or enum named #'
13+
- '#Call to an undefined static method App\\Models\\.*::where.*\(\)#'
14+
- '#Call to an undefined static method App\\Models\\.*::firstOr.*\(\)#'
15+
- '#Call to an undefined static method App\\Models\\.*::find.*\(\)#'
16+
- '#Call to an undefined static method App\\Models\\.*::get.*\(\)#'
17+
- '#Call to an undefined static method App\\Models\\.*::has.*\(\)#'
18+
- '#Call to static method info\(\) on an unknown class Log#'
19+
- '#Call to static method debug\(\) on an unknown class Log#'
20+
- '#Call to static method getSchemaBuilder\(\) on an unknown class DB#'
21+
- '#Call to static method call\(\) on an unknown class Artisan.#'
22+

psalm.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="7"
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+
findUnusedBaselineEntry="true"
9+
>
10+
<projectFiles>
11+
<directory name="app" />
12+
<directory name="database/factories" />
13+
<directory name="database/seeders" />
14+
<ignoreFiles>
15+
<directory name="vendor" />
16+
</ignoreFiles>
17+
</projectFiles>
18+
</psalm>

0 commit comments

Comments
 (0)