Skip to content

Commit 7505152

Browse files
authored
Update Factory.php (#58108)
1 parent bc19508 commit 7505152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Factories/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,10 @@ public function getConnectionName()
842842
/**
843843
* Specify the database connection that should be used to generate models.
844844
*
845-
* @param \UnitEnum|string $connection
845+
* @param \UnitEnum|string|null $connection
846846
* @return static
847847
*/
848-
public function connection(UnitEnum|string $connection)
848+
public function connection(UnitEnum|string|null $connection)
849849
{
850850
return $this->newInstance(['connection' => $connection]);
851851
}

0 commit comments

Comments
 (0)