-
Notifications
You must be signed in to change notification settings - Fork 6
/
psalm.xml
87 lines (79 loc) · 3.28 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<psalm
errorLevel="3"
resolveFromConfigFile="true"
sealAllMethods="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" />
<directory name="tests" />
<ignoreFiles>
<directory name="vendor" />
<file name="tests/bootstrap.php" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<InaccessibleProperty>
<errorLevel type="suppress">
<!-- https://github.com/vimeo/psalm/issues/5009 -->
<!-- https://github.com/vimeo/psalm/issues/5156 -->
<file name="src/sad_spirit/pg_builder/nodes/ColumnReference.php"/>
<file name="src/sad_spirit/pg_builder/nodes/QualifiedName.php"/>
<file name="src/sad_spirit/pg_builder/nodes/QualifiedOperator.php"/>
</errorLevel>
</InaccessibleProperty>
<InvalidCatch>
<errorLevel type="suppress">
<!-- Doesn't like catching \Psr\Cache\InvalidArgumentException that does not extend \Throwable -->
<file name="src/sad_spirit/pg_builder/Parser.php"/>
<referencedClass name="\Psr\Cache\InvalidArgumentException"/>
</errorLevel>
</InvalidCatch>
<InvalidPropertyAssignmentValue>
<errorLevel type="suppress">
<!--
Triggered by `$this->offsets[] = $prepared;`
The error is triggered correctly, however all subclasses allow int array keys, so ignore
-->
<file name="src/sad_spirit/pg_builder/nodes/lists/GenericNodeList.php"/>
</errorLevel>
</InvalidPropertyAssignmentValue>
<NonInvariantDocblockPropertyType>
<errorLevel type="suppress">
<!--
The error is triggered correctly, but fixing it in a more proper way
will require a large amount of work like adding generics to FromElement
-->
<file name="src/sad_spirit/pg_builder/nodes/range/FunctionFromElement.php"/>
</errorLevel>
</NonInvariantDocblockPropertyType>
<!-- Ignore these in tests, whatever we access is guaranteed to be not null -->
<PossiblyNullArrayAccess>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</PossiblyNullArrayAccess>
<PossiblyInvalidClone>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</PossiblyInvalidClone>
<PossiblyNullReference>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</PossiblyNullReference>
<!-- Tests for child nodes removed from previous parent trigger these -->
<TypeDoesNotContainNull>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</TypeDoesNotContainNull>
</issueHandlers>
<stubs>
<file name="tests/config.php.psalm"/>
</stubs>
</psalm>