mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 07:34:41 +01:00
add return type fromString method
This commit is contained in:
parent
e3af33c8e0
commit
14699d1d52
@ -29,7 +29,7 @@ enum InlineQueryPeerType implements JsonSerializable
|
||||
* @param string Type of the chat from which the inline query was sent.
|
||||
* @throws AssertionError
|
||||
*/
|
||||
public static function fromString(string $name)
|
||||
public static function fromString(string $name): InlineQueryPeerType
|
||||
{
|
||||
$newName = ltrim($name, "inlineQueryPeerType");
|
||||
foreach (InlineQueryPeerType::cases() as $case) {
|
||||
|
Loading…
Reference in New Issue
Block a user