File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1016,7 +1016,7 @@ public function test_factory_can_insert_with_array_casts()
10161016 {
10171017 (new FactoryTestUserWithArrayFactory ())->count (2 )->insert ();
10181018 $ users = DB ::table ('users ' )->get ();
1019- foreach ($ users as $ user ) {
1019+ foreach ($ users as $ user ) {
10201020 $ this ->assertEquals (['rtj ' ], json_decode ($ user ->options , true ));
10211021 $ createdAt = Carbon::parse ($ user ->created_at );
10221022 $ updatedAt = Carbon::parse ($ user ->updated_at );
@@ -1249,6 +1249,7 @@ class FactoryTestUseFactoryAttribute extends Eloquent
12491249class FactoryTestUserWithArray extends Eloquent
12501250{
12511251 protected $ table = 'users ' ;
1252+
12521253 protected function casts ()
12531254 {
12541255 return ['options ' => 'array ' ];
@@ -1258,6 +1259,7 @@ protected function casts()
12581259class FactoryTestUserWithArrayFactory extends Factory
12591260{
12601261 protected $ model = FactoryTestUserWithArray::class;
1262+
12611263 public function definition ()
12621264 {
12631265 return [
@@ -1267,7 +1269,6 @@ public function definition()
12671269 }
12681270}
12691271
1270-
12711272enum Name: string
12721273{
12731274 case Taylor = 'totwell ' ;
You can’t perform that action at this time.
0 commit comments