We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655bd1d commit dbff203Copy full SHA for dbff203
tests/system/Validation/ValidationTest.php
@@ -270,6 +270,16 @@ public function testRunDoesTheBasics(): void
270
$this->assertSame([], $this->validation->getValidated());
271
}
272
273
+ public function testRunWithNumericFieldName(): void
274
+ {
275
+ // The array key will be int.
276
+ $data = ['123' => 'notanumber'];
277
+ $this->validation->setRules(['123' => 'is_numeric']);
278
+
279
+ $this->assertFalse($this->validation->run($data));
280
+ $this->assertSame([], $this->validation->getValidated());
281
+ }
282
283
public function testClosureRule(): void
284
{
285
$this->validation->setRules(
0 commit comments