-
Notifications
You must be signed in to change notification settings - Fork 4
/
psalm-baseline.xml
132 lines (132 loc) · 3.88 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
<?xml version="1.0" encoding="UTF-8"?>
<files
psalm-version="3.4.9@aa0efcf026e353ce2a4b66c4d3d81caebbf0966a"
php-version="
php:7.2.19;
apc:5.1.8;
apcu:5.1.8;
ast:0.1.5;
bcmath:7.2.19;
bz2:7.2.19;
calendar:7.2.19;
Core:7.2.19;
ctype:7.2.19;
curl:7.2.19;
date:7.2.19;
dba:7.2.19;
dom:20031129;
exif:7.2.19;
fileinfo:1.0.5;
filter:7.2.19;
ftp:7.2.19;
gd:7.2.19;
gettext:7.2.19;
gmp:7.2.19;
hash:1.0;
iconv:7.2.19;
intl:1.1.0;
json:1.6.0;
ldap:7.2.19;
libxml:7.2.19;
mbstring:7.2.19;
mysqli:7.2.19;
mysqlnd:mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $;
odbc:7.2.19;
openssl:7.2.19;
pcntl:7.2.19;
pcre:7.2.19;
PDO:7.2.19;
pdo_dblib:7.2.19;
pdo_mysql:7.2.19;
PDO_ODBC:7.2.19;
pdo_pgsql:7.2.19;
pdo_sqlite:7.2.19;
pgsql:7.2.19;
Phar:2.0.2;
phpdbg_webhelper:0.5.0;
posix:7.2.19;
pspell:7.2.19;
readline:7.2.19;
Reflection:7.2.19;
session:7.2.19;
shmop:7.2.19;
SimpleXML:7.2.19;
soap:7.2.19;
sockets:7.2.19;
sodium:7.2.19;
SPL:7.2.19;
sqlite3:7.2.19;
standard:7.2.19;
sysvmsg:7.2.19;
sysvsem:7.2.19;
sysvshm:7.2.19;
tidy:7.2.19;
tokenizer:7.2.19;
wddx:7.2.19;
xml:7.2.19;
xmlreader:7.2.19;
xmlrpc:7.2.19;
xmlwriter:7.2.19;
xsl:7.2.19;
Zend OPcache:7.2.19;
Zend OPcache:7.2.19;
zip:1.15.4;
zlib:7.2.19
"
>
<file src="src/Command/Analyze.php">
<InvalidArrayOffset occurrences="2">
<code>$questions[array_search('Change Test Suite', $questions)]</code>
<code>$questions[array_search('Change Test Suite', $questions)]</code>
</InvalidArrayOffset>
<PossiblyInvalidArrayOffset occurrences="2">
<code>$questions[array_search('Change Parser', $questions)]</code>
<code>$questions[array_search('Change Property', $questions)]</code>
</PossiblyInvalidArrayOffset>
<PropertyNotSetInConstructor occurrences="3">
<code>$summaryTable</code>
<code>$input</code>
<code>$output</code>
</PropertyNotSetInConstructor>
<RedundantCondition occurrences="7">
<code>!isset($selectedTest) || $answer === 'Change Test Suite'</code>
<code>!isset($selectedParser) || $answer === 'Change Parser'</code>
<code>!isset($justAgents) || $answer === 'Show Full Diff'</code>
<code>!isset($selectedTest) || $answer === 'Change Test Suite'</code>
<code>!isset($section) || $answer === 'Change Section'</code>
<code>!isset($property) || $answer === 'Change Section'</code>
<code>!isset($justFails) || $answer === 'Show All'</code>
</RedundantCondition>
<UndefinedVariable occurrences="7">
<code>$selectedTest</code>
<code>$selectedParser</code>
<code>$justAgents</code>
<code>$selectedTest</code>
<code>$section</code>
<code>$property</code>
<code>$justFails</code>
</UndefinedVariable>
</file>
<file src="src/Command/Helper/Normalize.php">
<PossiblyInvalidArgument occurrences="1">
<code>$value</code>
</PossiblyInvalidArgument>
<PossiblyInvalidArrayOffset occurrences="1">
<code>$v[$value]</code>
</PossiblyInvalidArrayOffset>
<PossiblyInvalidOperand occurrences="2">
<code>preg_replace('|[^0-9a-z.]|', '', mb_strtolower($parsed['platform']['version']))</code>
<code>preg_replace('|[^0-9a-z.]|', '', mb_strtolower($parsed['platform']['version']))</code>
</PossiblyInvalidOperand>
</file>
<file src="src/Command/Helper/Parsers.php">
<ForbiddenCode occurrences="1">
<code>shell_exec($parserDir->getPathname() . '/parse.sh ' . implode(' ', $args))</code>
</ForbiddenCode>
</file>
<file src="src/Command/Test.php">
<ForbiddenCode occurrences="1">
<code>shell_exec($testData['path'] . '/build.sh')</code>
</ForbiddenCode>
</file>
</files>