Skip to content

Commit b33d6fc

Browse files
Adjust newFactory method visibility (#1735)
This method overrides the newFactory() method in the HasFactory trait, which is protected, resulting in a fatal error in PHP 8.3
1 parent ee4a826 commit b33d6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public function getIncrementing()
233233
*
234234
* @return \Illuminate\Database\Eloquent\Factories\Factory
235235
*/
236-
public static function newFactory()
236+
protected static function newFactory()
237237
{
238238
return ClientFactory::new();
239239
}

0 commit comments

Comments
 (0)