@@ -52,35 +52,27 @@ public function testLazyIsEmpty(): void
52
52
53
53
public function testLazyContains (): void
54
54
{
55
- /** @psalm-suppress InvalidArgument */
56
55
self ::assertFalse (self ::createLazyCollection ([])->contains (1 ));
57
- /** @psalm-suppress InvalidArgument */
58
56
self ::assertTrue (self ::createLazyCollection ([null ], $ visited )->contains (null ));
59
57
self ::assertSame ([null ], $ visited );
60
- /** @psalm-suppress InvalidArgument */
61
58
self ::assertTrue (($ collection = self ::createLazyCollection ([1 , '2 ' ], $ visited ))->contains (1 ));
62
59
self ::assertSame ([1 ], $ visited );
63
- /** @psalm-suppress InvalidArgument */
64
60
self ::assertFalse ($ collection ->contains (2 ));
65
61
self ::assertSame ([1 , '2 ' ], $ visited );
66
62
67
63
$ this ->assertClosedGenerator ();
68
64
69
- /** @psalm-suppress InvalidArgument */
70
65
$ collection ->contains (null );
71
66
}
72
67
73
68
public function testLazyContainsKey (): void
74
69
{
75
- /** @psalm-suppress InvalidArgument */
76
70
self ::assertFalse (self ::createLazyCollection ([])->containsKey (1 ));
77
- /** @psalm-suppress InvalidArgument */
78
71
self ::assertTrue (($ collection = self ::createLazyCollection ([1 , 'k ' => 'v ' , '2 ' => null ], $ visited ))->containsKey (2 ));
79
72
self ::assertSame ([1 , 'k ' => 'v ' , '2 ' => null ], $ visited );
80
73
81
74
$ this ->assertUnrewindableGenerator ();
82
75
83
- /** @psalm-suppress InvalidArgument */
84
76
$ collection ->containsKey (0 );
85
77
}
86
78
@@ -126,17 +118,13 @@ public function testLazyLastWithEmptyCollection(): void
126
118
127
119
public function testLazyGet (): void
128
120
{
129
- /** @psalm-suppress InvalidArgument */
130
121
self ::assertSame (1 , ($ collection = self ::createLazyCollection ([1 , 2 ], $ visited ))->get (0 ));
131
122
self ::assertSame ([1 ], $ visited );
132
- /** @psalm-suppress InvalidArgument */
133
123
self ::assertSame (1 , $ collection ->get ('0 ' ));
134
- /** @psalm-suppress InvalidArgument */
135
124
self ::assertSame (2 , $ collection ->get (1 ));
136
125
137
126
$ this ->assertUnrewindableGenerator ();
138
127
139
- /** @psalm-suppress InvalidArgument */
140
128
$ collection ->get (1 );
141
129
}
142
130
@@ -146,7 +134,6 @@ public function testLazyGetWithEmptyCollection(): void
146
134
147
135
$ this ->expectException (UnknownCollectionElement::class);
148
136
149
- /** @psalm-suppress InvalidArgument */
150
137
$ collection ->get ('foo ' );
151
138
}
152
139
@@ -156,7 +143,6 @@ public function testLazyGetWithUnknownKey(): void
156
143
157
144
$ this ->expectException (UnknownCollectionElement::class);
158
145
159
- /** @psalm-suppress InvalidArgument */
160
146
$ collection ->get ('foo ' );
161
147
}
162
148
0 commit comments