You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+79-73Lines changed: 79 additions & 73 deletions
Original file line number
Diff line number
Diff line change
@@ -4,169 +4,175 @@ parameters:
4
4
message:'#^Method PhpDb\\Adapter\\Profiler\\ProfilerInterface\:\:profilerFinish\(\) invoked with 1 parameter, 0 required\.$#'
5
5
identifier:arguments.count
6
6
count:1
7
-
path:src/Driver/Mysqli/Connection.php
7
+
path:src/Connection.php
8
8
9
9
-
10
-
message:'#^Property PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Connection\:\:\$driver \(PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Mysqli\) does not accept PhpDb\\Adapter\\Driver\\DriverInterface\.$#'
10
+
message:'#^Property PhpDb\\Mysql\\Connection\:\:\$driver \(PhpDb\\Mysql\\Driver\) does not accept PhpDb\\Adapter\\Driver\\DriverInterface\.$#'
11
11
identifier:assign.propertyType
12
12
count:1
13
-
path:src/Driver/Mysqli/Connection.php
13
+
path:src/Connection.php
14
14
15
15
-
16
-
message:'#^Property PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Connection\:\:\$resource \(mysqli\) does not accept null\.$#'
16
+
message:'#^Property PhpDb\\Mysql\\Connection\:\:\$resource \(mysqli\) does not accept null\.$#'
17
17
identifier:assign.propertyType
18
18
count:1
19
-
path:src/Driver/Mysqli/Connection.php
19
+
path:src/Connection.php
20
20
21
21
-
22
22
message:'#^Strict comparison using \!\=\= between null and null will always evaluate to false\.$#'
23
23
identifier:notIdentical.alwaysFalse
24
24
count:1
25
-
path:src/Driver/Mysqli/Connection.php
25
+
path:src/Connection.php
26
26
27
27
-
28
28
message:'#^Variable \$names in PHPDoc tag @var does not match assigned variable \$findParameterValue\.$#'
29
29
identifier:varTag.differentVariable
30
30
count:1
31
-
path:src/Driver/Mysqli/Connection.php
31
+
path:src/Connection.php
32
32
33
33
-
34
-
message:'#^Instanceof between PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Connection and PhpDb\\Adapter\\Driver\\DriverAwareInterface will always evaluate to true\.$#'
34
+
message:'#^Instanceof between PhpDb\\Mysql\\Connection and PhpDb\\Adapter\\Driver\\DriverAwareInterface will always evaluate to true\.$#'
35
35
identifier:instanceof.alwaysTrue
36
36
count:1
37
-
path:src/Driver/Mysqli/Mysqli.php
37
+
path:src/Driver.php
38
38
39
39
-
40
-
message:'#^Instanceof between PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Connection and PhpDb\\Adapter\\Profiler\\ProfilerAwareInterface will always evaluate to true\.$#'
40
+
message:'#^Instanceof between PhpDb\\Mysql\\Connection and PhpDb\\Adapter\\Profiler\\ProfilerAwareInterface will always evaluate to true\.$#'
41
41
identifier:instanceof.alwaysTrue
42
42
count:1
43
-
path:src/Driver/Mysqli/Mysqli.php
43
+
path:src/Driver.php
44
44
45
45
-
46
-
message:'#^Instanceof between PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Statement and PhpDb\\Adapter\\Driver\\DriverAwareInterface will always evaluate to true\.$#'
46
+
message:'#^Instanceof between PhpDb\\Mysql\\Statement and PhpDb\\Adapter\\Driver\\DriverAwareInterface will always evaluate to true\.$#'
47
47
identifier:instanceof.alwaysTrue
48
48
count:1
49
-
path:src/Driver/Mysqli/Mysqli.php
49
+
path:src/Driver.php
50
50
51
51
-
52
-
message:'#^Instanceof between PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Statement and PhpDb\\Adapter\\Profiler\\ProfilerAwareInterface will always evaluate to true\.$#'
52
+
message:'#^Instanceof between PhpDb\\Mysql\\Statement and PhpDb\\Adapter\\Profiler\\ProfilerAwareInterface will always evaluate to true\.$#'
53
53
identifier:instanceof.alwaysTrue
54
54
count:1
55
-
path:src/Driver/Mysqli/Mysqli.php
55
+
path:src/Driver.php
56
56
57
57
-
58
-
message:'#^Method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Mysqli\:\:getResultPrototype\(\) should return PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Result but returns PhpDb\\Adapter\\Driver\\ResultInterface\.$#'
58
+
message:'#^Method PhpDb\\Mysql\\Driver\:\:getResultPrototype\(\) should return PhpDb\\Mysql\\Result but returns PhpDb\\Adapter\\Driver\\ResultInterface\.$#'
59
59
identifier:return.type
60
60
count:1
61
-
path:src/Driver/Mysqli/Mysqli.php
61
+
path:src/Driver.php
62
62
63
63
-
64
-
message:'#^Parameter \#1 \$resource \(mysqli\|mysqli_stmt\|PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\mysqli_result\) of method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Mysqli\:\:createResult\(\) should be compatible with parameter \$resource \(resource\) of method PhpDb\\Adapter\\Driver\\DriverInterface\:\:createResult\(\)$#'
64
+
message:'#^Parameter \#1 \$resource \(mysqli\|mysqli_stmt\|PhpDb\\Mysql\\mysqli_result\) of method PhpDb\\Mysql\\Driver\:\:createResult\(\) should be compatible with parameter \$resource \(resource\) of method PhpDb\\Adapter\\Driver\\DriverInterface\:\:createResult\(\)$#'
65
65
identifier:method.childParameterType
66
66
count:1
67
-
path:src/Driver/Mysqli/Mysqli.php
67
+
path:src/Driver.php
68
68
69
69
-
70
-
message:'#^Parameter \$resource of method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Mysqli\:\:createResult\(\) has invalid type PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\mysqli_result\.$#'
70
+
message:'#^Parameter \$resource of method PhpDb\\Mysql\\Driver\:\:createResult\(\) has invalid type PhpDb\\Mysql\\mysqli_result\.$#'
71
71
identifier:class.notFound
72
72
count:1
73
-
path:src/Driver/Mysqli/Mysqli.php
73
+
path:src/Driver.php
74
+
75
+
-
76
+
message:'#^Parameter \#2 \$array of function implode expects array\<string\>, array\<int, array\<int, string\>\> given\.$#'
77
+
identifier:argument.type
78
+
count:2
79
+
path:src/Metadata/Source.php
80
+
81
+
-
82
+
message:'#^Parameter \#2 \$array of function implode expects array\<string\>, array\<int, list\<string\>\> given\.$#'
83
+
identifier:argument.type
84
+
count:4
85
+
path:src/Metadata/Source.php
86
+
87
+
-
88
+
message:'#^Variable \$isFK might not be defined\.$#'
89
+
identifier:variable.undefined
90
+
count:1
91
+
path:src/Metadata/Source.php
92
+
93
+
-
94
+
message:'#^Variable \$name might not be defined\.$#'
95
+
identifier:variable.undefined
96
+
count:2
97
+
path:src/Metadata/Source.php
98
+
99
+
-
100
+
message:'#^Call to function is_string\(\) with string will always evaluate to true\.$#'
101
+
identifier:function.alreadyNarrowedType
102
+
count:1
103
+
path:src/Pdo/Connection.php
104
+
105
+
-
106
+
message:'#^Parameter \#1 \$resource \(PDOStatement\) of method PhpDb\\Mysql\\Pdo\\Driver\:\:createResult\(\) should be compatible with parameter \$resource \(resource\) of method PhpDb\\Adapter\\Driver\\DriverInterface\:\:createResult\(\)$#'
107
+
identifier:method.childParameterType
108
+
count:3
109
+
path:src/Pdo/Driver.php
110
+
111
+
-
112
+
message:'#^Parameter \#3 \$rowCount of method PhpDb\\Adapter\\Driver\\Pdo\\Result\:\:initialize\(\) expects Closure\|int, null given\.$#'
113
+
identifier:argument.type
114
+
count:1
115
+
path:src/Pdo/Driver.php
74
116
75
117
-
76
118
message:'#^Instanceof between mysqli_stmt and mysqli_stmt will always evaluate to true\.$#'
77
119
identifier:instanceof.alwaysTrue
78
120
count:2
79
-
path:src/Driver/Mysqli/Result.php
121
+
path:src/Result.php
80
122
81
123
-
82
-
message:'#^Method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Result\:\:initialize\(\) has PhpDb\\Adapter\\Exception\\InvalidArgumentException in PHPDoc @throws tag but it''s not thrown\.$#'
124
+
message:'#^Method PhpDb\\Mysql\\Result\:\:initialize\(\) has PhpDb\\Adapter\\Exception\\InvalidArgumentException in PHPDoc @throws tag but it''s not thrown\.$#'
83
125
identifier:throws.unusedType
84
126
count:1
85
-
path:src/Driver/Mysqli/Result.php
127
+
path:src/Result.php
86
128
87
129
-
88
-
message:'#^Method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Result\:\:isBuffered\(\) never returns null so it can be removed from the return type\.$#'
130
+
message:'#^Method PhpDb\\Mysql\\Result\:\:isBuffered\(\) never returns null so it can be removed from the return type\.$#'
89
131
identifier:return.unusedType
90
132
count:1
91
-
path:src/Driver/Mysqli/Result.php
133
+
path:src/Result.php
92
134
93
135
-
94
136
message:'#^Result of && is always false\.$#'
95
137
identifier:booleanAnd.alwaysFalse
96
138
count:1
97
-
path:src/Driver/Mysqli/Result.php
139
+
path:src/Result.php
98
140
99
141
-
100
142
message:'#^Instanceof between PhpDb\\Adapter\\ParameterContainer and PhpDb\\Adapter\\ParameterContainer will always evaluate to true\.$#'
101
143
identifier:instanceof.alwaysTrue
102
144
count:1
103
-
path:src/Driver/Mysqli/Statement.php
145
+
path:src/Statement.php
104
146
105
147
-
106
148
message:'#^Instanceof between mysqli_stmt and mysqli_stmt will always evaluate to true\.$#'
107
149
identifier:instanceof.alwaysTrue
108
150
count:1
109
-
path:src/Driver/Mysqli/Statement.php
151
+
path:src/Statement.php
110
152
111
153
-
112
-
message:'#^Method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Statement\:\:execute\(\) never returns null so it can be removed from the return type\.$#'
154
+
message:'#^Method PhpDb\\Mysql\\Statement\:\:execute\(\) never returns null so it can be removed from the return type\.$#'
113
155
identifier:return.unusedType
114
156
count:1
115
-
path:src/Driver/Mysqli/Statement.php
157
+
path:src/Statement.php
116
158
117
159
-
118
-
message:'#^Method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Statement\:\:getParameterContainer\(\) never returns null so it can be removed from the return type\.$#'
160
+
message:'#^Method PhpDb\\Mysql\\Statement\:\:getParameterContainer\(\) never returns null so it can be removed from the return type\.$#'
119
161
identifier:return.unusedType
120
162
count:1
121
-
path:src/Driver/Mysqli/Statement.php
163
+
path:src/Statement.php
122
164
123
165
-
124
-
message:'#^Method PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Statement\:\:getSql\(\) never returns null so it can be removed from the return type\.$#'
166
+
message:'#^Method PhpDb\\Mysql\\Statement\:\:getSql\(\) never returns null so it can be removed from the return type\.$#'
125
167
identifier:return.unusedType
126
168
count:1
127
-
path:src/Driver/Mysqli/Statement.php
169
+
path:src/Statement.php
128
170
129
171
-
130
-
message:'#^Property PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Statement\:\:\$driver \(PhpDb\\Adapter\\Mysql\\Driver\\Mysqli\\Mysqli\) does not accept PhpDb\\Adapter\\Driver\\DriverInterface\.$#'
172
+
message:'#^Property PhpDb\\Mysql\\Statement\:\:\$driver \(PhpDb\\Mysql\\Driver\) does not accept PhpDb\\Adapter\\Driver\\DriverInterface\.$#'
131
173
identifier:assign.propertyType
132
174
count:1
133
-
path:src/Driver/Mysqli/Statement.php
134
-
135
-
-
136
-
message:'#^Call to function is_string\(\) with string will always evaluate to true\.$#'
137
-
identifier:function.alreadyNarrowedType
138
-
count:1
139
-
path:src/Driver/Pdo/Connection.php
140
-
141
-
-
142
-
message:'#^Parameter \#1 \$resource \(PDOStatement\) of method PhpDb\\Adapter\\Mysql\\Driver\\Pdo\\Pdo\:\:createResult\(\) should be compatible with parameter \$resource \(resource\) of method PhpDb\\Adapter\\Driver\\DriverInterface\:\:createResult\(\)$#'
143
-
identifier:method.childParameterType
144
-
count:3
145
-
path:src/Driver/Pdo/Pdo.php
146
-
147
-
-
148
-
message:'#^Parameter \#2 \$array of function implode expects array\<string\>, array\<int, array\<int, string\>\> given\.$#'
149
-
identifier:argument.type
150
-
count:2
151
-
path:src/Metadata/Source/MysqlMetadata.php
152
-
153
-
-
154
-
message:'#^Parameter \#2 \$array of function implode expects array\<string\>, array\<int, list\<string\>\> given\.$#'
155
-
identifier:argument.type
156
-
count:4
157
-
path:src/Metadata/Source/MysqlMetadata.php
158
-
159
-
-
160
-
message:'#^Variable \$isFK might not be defined\.$#'
161
-
identifier:variable.undefined
162
-
count:1
163
-
path:src/Metadata/Source/MysqlMetadata.php
164
-
165
-
-
166
-
message:'#^Variable \$name might not be defined\.$#'
167
-
identifier:variable.undefined
168
-
count:2
169
-
path:src/Metadata/Source/MysqlMetadata.php
175
+
path:src/Statement.php
170
176
171
177
-
172
178
message:'#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsInt\(\) with int will always evaluate to true\.$#'
0 commit comments