Skip to content

Commit

Permalink
Adjust newFactory method visibility
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 committed Apr 5, 2024
1 parent ee4a826 commit c08b7b9
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 c08b7b9

Please sign in to comment.