forked from matchory/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
58 lines (53 loc) · 1.96 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<psalm
errorLevel="3"
resolveFromConfigFile="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"/>
<directory name="src/pagination"/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!--
As these functions are included with Laravel and don't come bundled in a separate package, we have to ignore
them for now. They should ultimately be removed still, to allow using the package with other apps.
-->
<UndefinedFunction>
<errorLevel type="suppress">
<referencedFunction name="app"/>
<referencedFunction name="config"/>
</errorLevel>
</UndefinedFunction>
<!--
Due to the way Laravel handles console commands, psalm cannot be sure argument values are actually strings. We
know better, though.
-->
<PossiblyInvalidCast>
<errorLevel type="suppress">
<directory name="src/Commands"/>
</errorLevel>
</PossiblyInvalidCast>
<!--
This is caused by Laravel collections and scout having an unfortunate combination of type hints.
-->
<LessSpecificReturnStatement>
<errorLevel type="suppress">
<file name="src/ScoutEngine.php"/>
</errorLevel>
</LessSpecificReturnStatement>
<!--
This is caused by Laravel collections and scout having an unfortunate combination of type hints.
-->
<MoreSpecificReturnType>
<errorLevel type="suppress">
<file name="src/ScoutEngine.php"/>
</errorLevel>
</MoreSpecificReturnType>
</issueHandlers>
</psalm>