Skip to content

Commit b7aba53

Browse files
committed
Email::compose(): replaced self with static to fix cases when we are working with extended model
1 parent 9ebae89 commit b7aba53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Email extends Model
5252
*/
5353
public static function compose()
5454
{
55-
return new EmailComposer(new self);
55+
return new EmailComposer(new static);
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)