@@ -114,12 +114,18 @@ public function testProcessFile()
114
114
'param ' => '$param1 ' ,
115
115
'param-type ' => 'int ' ,
116
116
'doc-type ' => 'int|null ' ,
117
+ ], [
118
+ 'type ' => 'return-missing ' ,
119
+ 'file ' => 'TestClass.php ' ,
120
+ 'class ' => 'Test\Example\TestClass ' ,
121
+ 'method ' => 'test124 ' ,
122
+ 'line ' => 85 ,
117
123
], [
118
124
'type ' => 'param-mismatch ' ,
119
125
'file ' => 'TestClass.php ' ,
120
126
'class ' => 'Test\Example\TestClass ' ,
121
127
'method ' => 'test132 ' ,
122
- 'line ' => 87 ,
128
+ 'line ' => 114 ,
123
129
'param ' => '$param1 ' ,
124
130
'param-type ' => 'int|null ' ,
125
131
'doc-type ' => 'int ' ,
@@ -128,15 +134,15 @@ public function testProcessFile()
128
134
'file ' => 'TestClass.php ' ,
129
135
'class ' => 'Test\Example\TestClass ' ,
130
136
'method ' => 'test132 ' ,
131
- 'line ' => 87 ,
137
+ 'line ' => 114 ,
132
138
'return-type ' => 'bool|null ' ,
133
139
'doc-type ' => 'bool ' ,
134
140
], [
135
141
'type ' => 'param-mismatch ' ,
136
142
'file ' => 'TestClass.php ' ,
137
143
'class ' => 'Test\Example\TestClass ' ,
138
144
'method ' => 'test141 ' ,
139
- 'line ' => 117 ,
145
+ 'line ' => 144 ,
140
146
'param ' => '$param1 ' ,
141
147
'param-type ' => 'int|float ' ,
142
148
'doc-type ' => 'int ' ,
@@ -145,7 +151,7 @@ public function testProcessFile()
145
151
'file ' => 'TestClass.php ' ,
146
152
'class ' => 'Test\Example\TestClass ' ,
147
153
'method ' => 'test141 ' ,
148
- 'line ' => 117 ,
154
+ 'line ' => 144 ,
149
155
'return-type ' => 'bool|int ' ,
150
156
'doc-type ' => 'bool ' ,
151
157
]
@@ -256,12 +262,18 @@ public function testProcessFile()
256
262
'line ' => 57 ,
257
263
'doc-type ' => 'bool|int ' ,
258
264
'return-type ' => 'bool '
265
+ ], [
266
+ 'type ' => 'return-missing ' ,
267
+ 'file ' => 'TestClass.php ' ,
268
+ 'class ' => 'Test\Example\TestClass ' ,
269
+ 'method ' => 'test124 ' ,
270
+ 'line ' => 85 ,
259
271
], [
260
272
'type ' => 'param-mismatch ' ,
261
273
'file ' => 'TestClass.php ' ,
262
274
'class ' => 'Test\Example\TestClass ' ,
263
275
'method ' => 'test132 ' ,
264
- 'line ' => 87 ,
276
+ 'line ' => 114 ,
265
277
'param ' => '$param1 ' ,
266
278
'param-type ' => 'int|null ' ,
267
279
'doc-type ' => 'int ' ,
@@ -270,15 +282,15 @@ public function testProcessFile()
270
282
'file ' => 'TestClass.php ' ,
271
283
'class ' => 'Test\Example\TestClass ' ,
272
284
'method ' => 'test132 ' ,
273
- 'line ' => 87 ,
285
+ 'line ' => 114 ,
274
286
'return-type ' => 'bool|null ' ,
275
287
'doc-type ' => 'bool ' ,
276
288
], [
277
289
'type ' => 'param-mismatch ' ,
278
290
'file ' => 'TestClass.php ' ,
279
291
'class ' => 'Test\Example\TestClass ' ,
280
292
'method ' => 'test141 ' ,
281
- 'line ' => 117 ,
293
+ 'line ' => 144 ,
282
294
'param ' => '$param1 ' ,
283
295
'param-type ' => 'int|float ' ,
284
296
'doc-type ' => 'int ' ,
@@ -287,7 +299,7 @@ public function testProcessFile()
287
299
'file ' => 'TestClass.php ' ,
288
300
'class ' => 'Test\Example\TestClass ' ,
289
301
'method ' => 'test141 ' ,
290
- 'line ' => 117 ,
302
+ 'line ' => 144 ,
291
303
'return-type ' => 'bool|int ' ,
292
304
'doc-type ' => 'bool ' ,
293
305
]
0 commit comments