@@ -128,10 +128,6 @@ public function testLoadError(): void
128128 */
129129 public function testMode ($ mode , int $ expected ): void
130130 {
131- /**
132- * @psalm-suppress ArgumentTypeCoercion
133- * @phpstan-ignore-next-line
134- */
135131 Context::setMode ($ mode );
136132 $ this ->assertSame ($ expected , Context::getMode ());
137133 }
@@ -143,7 +139,6 @@ public function testMode($mode, int $expected): void
143139 public function providerForTestMode (): array
144140 {
145141 return [
146- [-1 , Context::SQL_MODE_NONE ],
147142 [0 , Context::SQL_MODE_NONE ],
148143 [1 , 1 ],
149144 ['' , Context::SQL_MODE_NONE ],
@@ -202,15 +197,8 @@ public function testModeWithCombinedModes(): void
202197 $ this ->assertSame (Context::SQL_MODE_NONE , Context::getMode ());
203198 }
204199
205- /**
206- * BC tests
207- */
208200 public function testModeWithString (): void
209201 {
210- /**
211- * @psalm-suppress InvalidScalarArgument
212- * @phpstan-ignore-next-line
213- */
214202 Context::setMode ('REAL_AS_FLOAT,ANSI_QUOTES,IGNORE_SPACE ' );
215203 $ this ->assertSame (
216204 Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ANSI_QUOTES | Context::SQL_MODE_IGNORE_SPACE ,
@@ -221,17 +209,9 @@ public function testModeWithString(): void
221209 $ this ->assertFalse (Context::hasMode (Context::SQL_MODE_REAL_AS_FLOAT | Context::SQL_MODE_ALLOW_INVALID_DATES ));
222210 $ this ->assertFalse (Context::hasMode (Context::SQL_MODE_ALLOW_INVALID_DATES ));
223211
224- /**
225- * @psalm-suppress InvalidScalarArgument
226- * @phpstan-ignore-next-line
227- */
228212 Context::setMode ('TRADITIONAL ' );
229213 $ this ->assertSame (Context::SQL_MODE_TRADITIONAL , Context::getMode ());
230214
231- /**
232- * @psalm-suppress InvalidScalarArgument
233- * @phpstan-ignore-next-line
234- */
235215 Context::setMode ('' );
236216 $ this ->assertSame (Context::SQL_MODE_NONE , Context::getMode ());
237217 }
0 commit comments