Skip to content

Commit 203e7f5

Browse files
authored
make OutgoingMessage return static instead of self (botman#1197)
1 parent 366f1d2 commit 203e7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Messages/Outgoing/OutgoingMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct($message = null, Attachment $attachment = null)
3030
*/
3131
public static function create($message = null, Attachment $attachment = null)
3232
{
33-
return new self($message, $attachment);
33+
return new static($message, $attachment);
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)