Skip to content

Commit

Permalink
Update sources
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed May 18, 2020
1 parent 9e65a4e commit f9eceed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/factory.stub
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class {{ model }}Factory extends Factory
/**
* Define the model's default state.
*
* @return static
* @return array
*/
public function definition()
{
Expand Down
2 changes: 1 addition & 1 deletion src/BelongsToManyRelationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BelongsToManyRelationship
* Create a new attached relationship definition.
*
* @param \Illuminate\Database\Eloquent\Factories\Factory $factory
* @param callable\array $pivot
* @param callable|array $pivot
* @param string $relationship
* @return void
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function __construct($count = null,
/**
* Define the model's default state.
*
* @return static
* @return array
*/
abstract public function definition();

Expand Down Expand Up @@ -488,10 +488,10 @@ protected function callAfterCreating(Collection $instances, ?Model $parent = nul
/**
* Specify how many models should be generated.
*
* @param int $count
* @param int|null $count
* @return static
*/
public function count(int $count)
public function count(?int $count)
{
return $this->newInstance(['count' => $count]);
}
Expand Down

0 comments on commit f9eceed

Please sign in to comment.