@@ -213,16 +213,13 @@ public static function provideMatches(): iterable
213213 yield from [
214214 'foo bar not exist ' => [[], false ],
215215 'bar not exist ' => [['foo ' => null ], false ],
216- 'foo not exist ' => [['bar ' => null ], true ],
216+ 'foo not exist ' => [['bar ' => null ], false ],
217217 'foo bar null ' => [['foo ' => null , 'bar ' => null ], true ],
218218 'foo bar string match ' => [['foo ' => 'match ' , 'bar ' => 'match ' ], true ],
219219 'foo bar string not match ' => [['foo ' => 'match ' , 'bar ' => 'nope ' ], false ],
220- // TypeError: CodeIgniter\Validation\Rules::matches(): Argument #1 ($str) must be of type ?string, float given
221- // 'foo bar float match' => [['foo' => 1.2, 'bar' => 1.2], true],
222- // TypeError: CodeIgniter\Validation\Rules::matches(): Argument #1 ($str) must be of type ?string, float given
223- // 'foo bar float not match' => [['foo' => 1.2, 'bar' => 2.3], false],
224- // TypeError: CodeIgniter\Validation\Rules::matches(): Argument #1 ($str) must be of type ?string, float given
225- // 'foo bar bool match' => [['foo' => true, 'bar' => true], true],
220+ 'foo bar float match ' => [['foo ' => 1.2 , 'bar ' => 1.2 ], true ],
221+ 'foo bar float not match ' => [['foo ' => 1.2 , 'bar ' => 2.3 ], false ],
222+ 'foo bar bool match ' => [['foo ' => true , 'bar ' => true ], true ],
226223 ];
227224 }
228225
@@ -245,7 +242,7 @@ public static function provideDiffers(): iterable
245242 'foo bar string match ' => [['foo ' => 'match ' , 'bar ' => 'match ' ], false ],
246243 'foo bar string not match ' => [['foo ' => 'match ' , 'bar ' => 'nope ' ], true ],
247244 'foo bar float match ' => [['foo ' => 1.2 , 'bar ' => 1.2 ], false ],
248- 'foo bar float not match ' => [['foo ' => 1.2 , 'bar ' => 2.3 ], false ],
245+ 'foo bar float not match ' => [['foo ' => 1.2 , 'bar ' => 2.3 ], true ],
249246 'foo bar bool match ' => [['foo ' => true , 'bar ' => true ], false ],
250247 ];
251248 }
0 commit comments