forked from toneplex/MicrodataPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-baseline.xml
149 lines (149 loc) · 4.57 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.26.0@6998fabb2bf528b65777bf9941920888d23c03ac">
<file src="src/MicrodataPhp.php">
<MissingParamType occurrences="2">
<code>$item</code>
<code>$memory</code>
</MissingParamType>
<MissingPropertyType occurrences="1">
<code>$dom</code>
</MissingPropertyType>
<MissingReturnType occurrences="1">
<code>getObject</code>
</MissingReturnType>
<MixedArgument occurrences="3">
<code>$config['html']</code>
<code>$config['url']</code>
<code>$memory</code>
</MixedArgument>
<MixedArrayAssignment occurrences="1">
<code>$memory[]</code>
</MixedArrayAssignment>
<MixedArrayOffset occurrences="1">
<code>$result->properties[$prop]</code>
</MixedArrayOffset>
<MixedAssignment occurrences="9">
<code>$elem</code>
<code>$item</code>
<code>$itemid</code>
<code>$itemtype</code>
<code>$memory[]</code>
<code>$memory_item</code>
<code>$prop</code>
<code>$value</code>
<code>$value</code>
</MixedAssignment>
<MixedMethodCall occurrences="7">
<code>getItems</code>
<code>itemProp</code>
<code>itemScope</code>
<code>itemType</code>
<code>itemValue</code>
<code>itemid</code>
<code>properties</code>
</MixedMethodCall>
</file>
<file src="src/MicrodataPhpDOMDocument.php">
<InvalidReturnStatement occurrences="1">
<code>$this->xpath</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>DOMXPath</code>
</InvalidReturnType>
<MissingConstructor occurrences="1">
<code>$xpath</code>
</MissingConstructor>
<MixedInferredReturnType occurrences="1">
<code>DOMNodeList</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$this->xpath()->query('//*[@itemscope and not(@itemprop)]')</code>
</MixedReturnStatement>
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this->xpath)</code>
</RedundantPropertyInitializationCheck>
<UndefinedDocblockClass occurrences="3">
<code>$this->xpath()</code>
<code>DOMNodeList</code>
<code>DOMXPath</code>
</UndefinedDocblockClass>
</file>
<file src="src/MicrodataPhpDOMElement.php">
<InvalidNullableReturnType occurrences="2">
<code>array</code>
<code>string</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="1">
<code>$this</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>string</code>
</InvalidReturnType>
<MissingParamType occurrences="4">
<code>$node</code>
<code>$props</code>
<code>$root</code>
<code>$toTraverse</code>
</MissingParamType>
<MissingReturnType occurrences="1">
<code>traverse</code>
</MissingReturnType>
<MixedArgument occurrences="2">
<code>$names</code>
<code>$toTraverse</code>
</MixedArgument>
<MixedArrayAccess occurrences="2">
<code>$toTraverse[$i]</code>
<code>$toTraverse[0]</code>
</MixedArrayAccess>
<MixedArrayAssignment occurrences="1">
<code>$props[]</code>
</MixedArrayAssignment>
<MixedArrayOffset occurrences="1">
<code>$toTraverse[$i]</code>
</MixedArrayOffset>
<MixedAssignment occurrences="9">
<code>$child</code>
<code>$child</code>
<code>$children</code>
<code>$children</code>
<code>$elem</code>
<code>$i</code>
<code>$itemref</code>
<code>$names</code>
<code>$props[]</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>array</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="7">
<code>getNodePath</code>
<code>isSameNode</code>
<code>isSameNode</code>
<code>itemProp</code>
<code>itemScope</code>
<code>query</code>
<code>query</code>
</MixedMethodCall>
<MixedOperand occurrences="2">
<code>$itemref</code>
<code>$node->getNodePath()</code>
</MixedOperand>
<MixedReturnStatement occurrences="1">
<code>$props</code>
</MixedReturnStatement>
<NullableReturnStatement occurrences="3">
<code>NULL</code>
<code>NULL</code>
<code>null</code>
</NullableReturnStatement>
<PossiblyNullReference occurrences="2">
<code>xpath</code>
<code>xpath</code>
</PossiblyNullReference>
<UndefinedMethod occurrences="2">
<code>xpath</code>
<code>xpath</code>
</UndefinedMethod>
</file>
</files>