File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ public function makeArray()
374374 $ result = [];
375375
376376 foreach ($ this ->formatters as $ field => $ formatter ) {
377- $ result [$ field ] = $ this ->faker ->{$ formatter };
377+ $ result [$ field ] = $ this ->faker ->{$ formatter }() ;
378378 }
379379 }
380380 // If no formatters were defined then look for a model fake() method
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class FabricatorModel extends Model
3030 public function fake (Generator &$ faker )
3131 {
3232 return (object ) [
33- 'name ' => $ faker ->ipv4 ,
33+ 'name ' => $ faker ->ipv4 () ,
3434 'description ' => $ faker ->words (10 ),
3535 ];
3636 }
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function testGetFakerReturnsUsableGenerator()
120120
121121 $ faker = $ fabricator ->getFaker ();
122122
123- $ this ->assertIsNumeric ($ faker ->randomDigit );
123+ $ this ->assertIsNumeric ($ faker ->randomDigit () );
124124 }
125125
126126 public function testSetFormattersChangesFormatters ()
You can’t perform that action at this time.
0 commit comments