File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 45
45
"require-dev" : {
46
46
"php-service-bus/code-style-config" : " v5.1.*" ,
47
47
"phpunit/phpunit" : " v9.5.*" ,
48
- "vimeo/psalm" : " v4.19 .*" ,
49
- "phpstan/phpstan" : " v1.4 .*" ,
48
+ "vimeo/psalm" : " v4.22 .*" ,
49
+ "phpstan/phpstan" : " v1.5 .*" ,
50
50
"boesing/psalm-plugin-stringf" : " v1.1.*"
51
51
},
52
52
"prefer-stable" : true ,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<psalm
3
- totallyTyped =" true"
4
3
useDocblockTypes =" true"
5
4
useDocblockPropertyTypes =" true"
6
5
strictBinaryOperands =" true"
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ final class MessageEntityType implements Enum
43
43
44
44
private const TEXT_MENTION = 'text_mention ' ;
45
45
46
+ private const MENTION = 'mention ' ;
47
+
46
48
private const LIST = [
47
49
self ::HASH_TAG ,
48
50
self ::CASH_TAG ,
@@ -56,6 +58,7 @@ final class MessageEntityType implements Enum
56
58
self ::PRE ,
57
59
self ::TEXT_LINK ,
58
60
self ::TEXT_MENTION ,
61
+ self ::MENTION ,
59
62
];
60
63
61
64
/**
@@ -133,6 +136,11 @@ public static function textMention(): self
133
136
return new self (self ::TEXT_MENTION );
134
137
}
135
138
139
+ public static function mention (): self
140
+ {
141
+ return new self (self ::MENTION );
142
+ }
143
+
136
144
public function equals (MessageEntityType $ type ): bool
137
145
{
138
146
return $ this ->value === $ type ->value ;
You can’t perform that action at this time.
0 commit comments