@@ -62,10 +62,13 @@ public function testParse(): void
62
62
63
63
$ diffs = $ this ->parser ->parse ($ content );
64
64
65
+ /** @phpstan-ignore method.alreadyNarrowedType */
65
66
$ this ->assertContainsOnlyInstancesOf (Diff::class, $ diffs );
66
67
$ this ->assertCount (1 , $ diffs );
67
68
68
69
$ chunks = $ diffs [0 ]->chunks ();
70
+
71
+ /** @phpstan-ignore method.alreadyNarrowedType */
69
72
$ this ->assertContainsOnlyInstancesOf (Chunk::class, $ chunks );
70
73
71
74
$ this ->assertCount (1 , $ chunks );
@@ -147,11 +150,14 @@ public function testParseWithRemovedLines(): void
147
150
-B
148
151
END;
149
152
$ diffs = $ this ->parser ->parse ($ content );
153
+
154
+ /** @phpstan-ignore method.alreadyNarrowedType */
150
155
$ this ->assertContainsOnlyInstancesOf (Diff::class, $ diffs );
151
156
$ this ->assertCount (1 , $ diffs );
152
157
153
158
$ chunks = $ diffs [0 ]->chunks ();
154
159
160
+ /** @phpstan-ignore method.alreadyNarrowedType */
155
161
$ this ->assertContainsOnlyInstancesOf (Chunk::class, $ chunks );
156
162
$ this ->assertCount (1 , $ chunks );
157
163
@@ -162,6 +168,8 @@ public function testParseWithRemovedLines(): void
162
168
$ this ->assertSame (8 , $ chunk ->endRange ());
163
169
164
170
$ lines = $ chunk ->lines ();
171
+
172
+ /** @phpstan-ignore method.alreadyNarrowedType */
165
173
$ this ->assertContainsOnlyInstancesOf (Line::class, $ lines );
166
174
$ this ->assertCount (2 , $ lines );
167
175
@@ -220,11 +228,14 @@ public function testParseWithRange(): void
220
228
-B
221
229
END;
222
230
$ diffs = $ this ->parser ->parse ($ content );
231
+
232
+ /** @phpstan-ignore method.alreadyNarrowedType */
223
233
$ this ->assertContainsOnlyInstancesOf (Diff::class, $ diffs );
224
234
$ this ->assertCount (1 , $ diffs );
225
235
226
236
$ chunks = $ diffs [0 ]->chunks ();
227
237
238
+ /** @phpstan-ignore method.alreadyNarrowedType */
228
239
$ this ->assertContainsOnlyInstancesOf (Chunk::class, $ chunks );
229
240
$ this ->assertCount (2 , $ chunks );
230
241
0 commit comments