-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpsalm-baseline.xml
118 lines (118 loc) · 4.07 KB
/
psalm-baseline.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.6.1@e93e532e4eaad6d68c4d7b606853800eaceccc72">
<file src="src/Sanitization.php">
<InvalidDocblockParamName occurrences="1">
<code>$filter</code>
</InvalidDocblockParamName>
<MissingParamType occurrences="1">
<code>$flag</code>
</MissingParamType>
<MixedArgument occurrences="13">
<code>$data</code>
<code>$data</code>
<code>$data</code>
<code>$email</code>
<code>$email</code>
<code>$flag</code>
<code>$pattern</code>
<code>$replace</code>
<code>$replacement</code>
<code>$search</code>
<code>$subject</code>
<code>$value</code>
<code>$value</code>
</MixedArgument>
<MixedArgumentTypeCoercion occurrences="1">
<code>$key</code>
</MixedArgumentTypeCoercion>
<MixedAssignment occurrences="7">
<code>$data</code>
<code>$data</code>
<code>$data</code>
<code>$data</code>
<code>$email</code>
<code>$value</code>
<code>$value</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$data</code>
</MixedReturnStatement>
<PossiblyFalseOperand occurrences="1">
<code>strpos($email, '@')</code>
</PossiblyFalseOperand>
</file>
<file src="test/SanitizationTest.php">
<MissingParamType occurrences="2">
<code>$s</code>
<code>$s</code>
</MissingParamType>
<MissingReturnType occurrences="26">
<code>testCheckIfIsAssociativeWorks</code>
<code>testCheckIfIsEmptyWorks</code>
<code>testCheckIfIsValidWork</code>
<code>testCheckIfTheGetterCanGetData</code>
<code>testCheckIfTheLibraryEscapeSqlQueries</code>
<code>testCheckIfTheLibraryIdentiftyEmptyArray</code>
<code>testCheckIfTheLibraryIdentiftyEmptyQuery</code>
<code>testCheckIfTheLibraryIdentiftyEmptyString</code>
<code>testCheckIfTheLibrarySanitizeArray</code>
<code>testCheckIfTheLibrarySanitizeAssociativeArrayKeys</code>
<code>testCheckIfTheLibrarySanitizeAssociativeArrayValues</code>
<code>testCheckIfTheLibrarySanitizeString</code>
<code>testCheckIfTheSetterCanSetData</code>
<code>testCheckIfUseFilterVarWorks</code>
<code>testCheckIfUseHtmlEntitiesWorks</code>
<code>testCheckIfUseHtmlSpecialCharsWorks</code>
<code>testCheckIfUsePregReplaceFindNull</code>
<code>testCheckIfUsePregReplaceWorks</code>
<code>testCheckIfUsePregReplaceWorksOnArray</code>
<code>testCheckIfUseStrReplaceFindNull</code>
<code>testCheckIfUseStrReplaceWorks</code>
<code>testCheckIfUseStrReplaceWorksOnArray</code>
<code>testCheckIfUseStripSlashesWorks</code>
<code>testCheckIfUseStripTagsWorks</code>
<code>testCheckIfUseTrimWorks</code>
<code>testSetterAndGetter</code>
</MissingReturnType>
<MixedArrayAccess occurrences="5">
<code>$sanitized["sql&#039;"]</code>
<code>$sanitized["xss"]</code>
<code>$sanitized[0]</code>
<code>$sanitized[0]</code>
<code>$sanitized[0]</code>
</MixedArrayAccess>
<MixedAssignment occurrences="17">
<code>$data</code>
<code>$escaped</code>
<code>$escaped</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$sanitized</code>
<code>$validate</code>
</MixedAssignment>
<MixedMethodCall occurrences="2">
<code>getData</code>
<code>setData</code>
</MixedMethodCall>
<PossiblyUndefinedVariable occurrences="5">
<code>$expected</code>
<code>$expected</code>
<code>$expected</code>
<code>$expected</code>
<code>$expected</code>
</PossiblyUndefinedVariable>
</file>
</files>