File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -962,15 +962,19 @@ public function testNumericFieldName(): void
962
962
{
963
963
$ user = new User ();
964
964
$ user ->{1 } = 'one ' ;
965
- $ user ->{2 } = ['2 ' => 'two.two ' ];
965
+ $ user ->{2 } = ['3 ' => 'two.three ' ];
966
966
$ user ->save ();
967
967
968
968
$ found = User::where (1 , 'one ' )->first ();
969
969
$ this ->assertInstanceOf (User::class, $ found );
970
970
$ this ->assertEquals ('one ' , $ found [1 ]);
971
971
972
- $ found = User::where ('2.2 ' , 'two.two ' )->first ();
972
+ $ found = User::where ('2.3 ' , 'two.three ' )->first ();
973
973
$ this ->assertInstanceOf (User::class, $ found );
974
- $ this ->assertEquals ([2 => 'two.two ' ], $ found [2 ]);
974
+ $ this ->assertEquals ([3 => 'two.three ' ], $ found [2 ]);
975
+
976
+ $ found = User::where (2.3 , 'two.three ' )->first ();
977
+ $ this ->assertInstanceOf (User::class, $ found );
978
+ $ this ->assertEquals ([3 => 'two.three ' ], $ found [2 ]);
975
979
}
976
980
}
You can’t perform that action at this time.
0 commit comments