Skip to content

Commit

Permalink
Adjust newFactory method visibility (#1735)
Browse files Browse the repository at this point in the history
This method overrides the newFactory() method in the HasFactory trait, which is protected, resulting in a fatal error in PHP 8.3
  • Loading branch information
brandonfarber authored Apr 5, 2024
1 parent ee4a826 commit b33d6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function getIncrementing()
*
* @return \Illuminate\Database\Eloquent\Factories\Factory
*/
public static function newFactory()
protected static function newFactory()
{
return ClientFactory::new();
}
Expand Down

0 comments on commit b33d6fc

Please sign in to comment.