-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpsalm.xml
More file actions
58 lines (52 loc) · 1.83 KB
/
psalm.xml
File metadata and controls
58 lines (52 loc) · 1.83 KB
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"?>
<!--
~ This file is part of the Phalcon Kit.
~
~ (c) Phalcon Kit Team
~
~ For the full copyright and license information, please view the LICENSE.txt
~ file that was distributed with this source code.
-->
<psalm
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"
xmlns:xi="http://www.w3.org/2001/XInclude"
phpVersion="8.4"
errorLevel="2"
resolveFromConfigFile="true"
findUnusedBaselineEntry="true"
findUnusedCode="false"
hideExternalErrors="true"
totallyTyped="true"
allowStringToStandInForClass="true"
autoloader="loader.php"
>
<projectFiles>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!-- Framework base classes are intentionally extensible -->
<ClassMustBeFinal errorLevel="suppress" />
<!-- Over-strict and often noise -->
<RiskyTruthyFalsyComparison errorLevel="suppress" />
<!-- Phalcon Stubs are not read correctly -->
<MethodSignatureMismatch errorLevel="suppress" />
<!-- To not validate int range for json functions -->
<ArgumentTypeCoercion>
<errorLevel type="suppress">
<referencedFunction name="json_encode" />
<referencedFunction name="json_decode" />
</errorLevel>
</ArgumentTypeCoercion>
<!-- False positive -->
<InvalidArgument>
<errorLevel type="suppress">
<referencedFunction name="Redis::connect" />
</errorLevel>
</InvalidArgument>
</issueHandlers>
</psalm>