File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 4545 "require-dev" : {
4646 "php-service-bus/code-style-config" : " v5.1.*" ,
4747 "phpunit/phpunit" : " v9.5.*" ,
48- "vimeo/psalm" : " v4.19 .*" ,
49- "phpstan/phpstan" : " v1.4 .*" ,
48+ "vimeo/psalm" : " v4.22 .*" ,
49+ "phpstan/phpstan" : " v1.5 .*" ,
5050 "boesing/psalm-plugin-stringf" : " v1.1.*"
5151 },
5252 "prefer-stable" : true ,
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<psalm
3- totallyTyped =" true"
43 useDocblockTypes =" true"
54 useDocblockPropertyTypes =" true"
65 strictBinaryOperands =" true"
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ final class MessageEntityType implements Enum
4343
4444 private const TEXT_MENTION = 'text_mention ' ;
4545
46+ private const MENTION = 'mention ' ;
47+
4648 private const LIST = [
4749 self ::HASH_TAG ,
4850 self ::CASH_TAG ,
@@ -56,6 +58,7 @@ final class MessageEntityType implements Enum
5658 self ::PRE ,
5759 self ::TEXT_LINK ,
5860 self ::TEXT_MENTION ,
61+ self ::MENTION ,
5962 ];
6063
6164 /**
@@ -133,6 +136,11 @@ public static function textMention(): self
133136 return new self (self ::TEXT_MENTION );
134137 }
135138
139+ public static function mention (): self
140+ {
141+ return new self (self ::MENTION );
142+ }
143+
136144 public function equals (MessageEntityType $ type ): bool
137145 {
138146 return $ this ->value === $ type ->value ;
You can’t perform that action at this time.
0 commit comments