Skip to content

[12.x] Improve type annotations for sequence() method and Sequence::$sequence property #55143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Factories/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public function set($key, $value)
/**
* Add a new sequenced state transformation to the model definition.
*
* @param mixed ...$sequence
* @param array|callable ...$sequence
* @return static
*/
public function sequence(...$sequence)
Expand All @@ -556,7 +556,7 @@ public function sequence(...$sequence)
/**
* Add a new sequenced state transformation to the model definition and update the pending creation count to the size of the sequence.
*
* @param array ...$sequence
* @param array|callable ...$sequence
* @return static
*/
public function forEachSequence(...$sequence)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Factories/Sequence.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Sequence implements Countable
/**
* The sequence of return values.
*
* @var array
* @var array<int, callable|array>
*/
protected $sequence;

Expand All @@ -30,7 +30,7 @@ class Sequence implements Countable
/**
* Create a new sequence instance.
*
* @param mixed ...$sequence
* @param array|callable ...$sequence
*/
public function __construct(...$sequence)
{
Expand Down
Loading