-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
42 lines (40 loc) · 1.36 KB
/
psalm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<psalm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config"
cacheDirectory="cache/psalm"
errorLevel="2"
findUnusedBaselineEntry="true"
phpVersion="7.4"
autoloader="vendor/szepeviktor/phpstan-wordpress/bootstrap.php"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor"/>
<directory name="cache"/>
<file name="rector.php"/>
<file name=".php-cs-fixer.php"/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<TooManyArguments>
<errorLevel type="suppress">
<referencedFunction name="apply_filters"/>
</errorLevel>
</TooManyArguments>
</issueHandlers>
<stubs>
<file name="vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"/>
<file name="stubs/MenuItem.php"/>
<file name="stubs/NavMenuArgs.php" />
</stubs>
<globals>
<var name="wpdb" type="\wpdb"/>
<var name="wp_query" type="\WP_Query"/>
<var name="wp_rewrite" type="\WP_Rewrite"/>
<var name="wp_version" type="string"/>
<var name="ABSPATH" type="string"/>
</globals>
</psalm>