Skip to content

Commit 51506d3

Browse files
committed
Fix: Run 'make static-code-analysis-baseline'
1 parent 2c6e637 commit 51506d3

File tree

1 file changed

+143
-1
lines changed

1 file changed

+143
-1
lines changed

psalm-baseline.xml

+143-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,144 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.21.1@8c473e2437be8b6a8fd8f630f0f11a16b114c494"/>
2+
<files psalm-version="5.21.1@8c473e2437be8b6a8fd8f630f0f11a16b114c494">
3+
<file src="src/News/Entry.php">
4+
<InvalidOperand>
5+
<code>$count</code>
6+
</InvalidOperand>
7+
<MissingParamType>
8+
<code>$value</code>
9+
</MissingParamType>
10+
<MissingPropertyType>
11+
<code>$categories</code>
12+
<code>$conf_time</code>
13+
<code>$content</code>
14+
<code>$id</code>
15+
<code>$image</code>
16+
<code>$title</code>
17+
</MissingPropertyType>
18+
<MissingReturnType>
19+
<code>ce</code>
20+
</MissingReturnType>
21+
<MixedArgument>
22+
<code>$node</code>
23+
<code><![CDATA[$this->categories]]></code>
24+
<code><![CDATA[$this->categories]]></code>
25+
<code><![CDATA[$this->conf_time]]></code>
26+
<code><![CDATA[$this->image['link']]]></code>
27+
<code><![CDATA[$this->image['path']]]></code>
28+
<code><![CDATA[$this->image['title']]]></code>
29+
<code>$v</code>
30+
<code>$value</code>
31+
</MixedArgument>
32+
<MixedArgumentTypeCoercion>
33+
<code>$k</code>
34+
</MixedArgumentTypeCoercion>
35+
<MixedArrayAccess>
36+
<code><![CDATA[$this->image['link']]]></code>
37+
<code><![CDATA[$this->image['link']]]></code>
38+
<code><![CDATA[$this->image['path']]]></code>
39+
<code><![CDATA[$this->image['path']]]></code>
40+
<code><![CDATA[$this->image['title']]]></code>
41+
</MixedArrayAccess>
42+
<MixedArrayAssignment>
43+
<code><![CDATA[$this->categories[]]]></code>
44+
</MixedArrayAssignment>
45+
<MixedArrayOffset>
46+
<code>self::CATEGORIES[$cat]</code>
47+
<code>self::CATEGORIES[$cat]</code>
48+
</MixedArrayOffset>
49+
<MixedAssignment>
50+
<code>$cat</code>
51+
<code>$cat</code>
52+
<code>$content</code>
53+
<code>$div</code>
54+
<code>$link</code>
55+
<code>$node</code>
56+
<code>$v</code>
57+
</MixedAssignment>
58+
<MixedInferredReturnType>
59+
<code>string</code>
60+
</MixedInferredReturnType>
61+
<MixedMethodCall>
62+
<code>appendChild</code>
63+
<code>appendChild</code>
64+
<code>setAttribute</code>
65+
<code>setAttribute</code>
66+
<code>setAttribute</code>
67+
</MixedMethodCall>
68+
<MixedOperand>
69+
<code><![CDATA[$this->id]]></code>
70+
</MixedOperand>
71+
<MixedPropertyAssignment>
72+
<code>$content</code>
73+
</MixedPropertyAssignment>
74+
<MixedReturnStatement>
75+
<code><![CDATA[$this->id]]></code>
76+
</MixedReturnStatement>
77+
<PossiblyNullIterator>
78+
<code><![CDATA[$tdoc->firstChild->childNodes]]></code>
79+
</PossiblyNullIterator>
80+
<PossiblyNullPropertyFetch>
81+
<code><![CDATA[$tdoc->firstChild->childNodes]]></code>
82+
</PossiblyNullPropertyFetch>
83+
<PossiblyUndefinedArrayOffset>
84+
<code><![CDATA[$_SERVER["REQUEST_TIME"]]]></code>
85+
<code><![CDATA[$_SERVER['REQUEST_TIME']]]></code>
86+
</PossiblyUndefinedArrayOffset>
87+
<RiskyTruthyFalsyComparison>
88+
<code><![CDATA[$this->image['link'] ?? null]]></code>
89+
<code><![CDATA[$this->image['path'] ?? '']]></code>
90+
</RiskyTruthyFalsyComparison>
91+
</file>
92+
<file src="src/UserNotes/Sorter.php">
93+
<InvalidOperand>
94+
<code>1 - .3</code>
95+
</InvalidOperand>
96+
<MissingPropertyType>
97+
<code>$ageFactor</code>
98+
<code>$ageWeight</code>
99+
<code>$maxAge</code>
100+
<code>$maxVote</code>
101+
<code>$minAge</code>
102+
<code>$minVote</code>
103+
<code>$ratingWeight</code>
104+
<code>$voteFactor</code>
105+
<code>$voteWeight</code>
106+
</MissingPropertyType>
107+
<MixedArrayOffset>
108+
<code><![CDATA[$prio[$a->id]]]></code>
109+
<code><![CDATA[$prio[$b->id]]]></code>
110+
</MixedArrayOffset>
111+
<MixedAssignment>
112+
<code><![CDATA[$prio[$note->id]]]></code>
113+
</MixedAssignment>
114+
<MixedInferredReturnType>
115+
<code>float</code>
116+
</MixedInferredReturnType>
117+
<MixedOperand>
118+
<code><![CDATA[$note->ts - $this->minAge]]></code>
119+
<code><![CDATA[$note->upvotes - $note->downvotes - $this->minVote]]></code>
120+
<code><![CDATA[$this->ageWeight]]></code>
121+
<code><![CDATA[$this->calcVotePriority($note) * $this->voteWeight]]></code>
122+
<code><![CDATA[$this->maxAge]]></code>
123+
<code><![CDATA[$this->maxAge]]></code>
124+
<code><![CDATA[$this->maxAge - $this->minAge]]></code>
125+
<code><![CDATA[$this->maxVote]]></code>
126+
<code><![CDATA[$this->maxVote]]></code>
127+
<code><![CDATA[$this->maxVote - $this->minVote]]></code>
128+
<code><![CDATA[$this->minAge]]></code>
129+
<code><![CDATA[$this->minVote]]></code>
130+
<code><![CDATA[$this->ratingWeight]]></code>
131+
<code><![CDATA[$this->voteWeight]]></code>
132+
<code><![CDATA[($note->upvotes - $note->downvotes - $this->minVote) * $this->voteFactor]]></code>
133+
<code><![CDATA[($this->calcVotePriority($note) * $this->voteWeight)
134+
+ ($this->calcRatingPriority($note) * $this->ratingWeight)]]></code>
135+
</MixedOperand>
136+
<MixedPropertyFetch>
137+
<code><![CDATA[$a->id]]></code>
138+
<code><![CDATA[$b->id]]></code>
139+
</MixedPropertyFetch>
140+
<MixedReturnStatement>
141+
<code><![CDATA[($note->upvotes - $note->downvotes - $this->minVote) * $this->voteFactor + .3]]></code>
142+
</MixedReturnStatement>
143+
</file>
144+
</files>

0 commit comments

Comments
 (0)