1
0
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:
َAhJ 2023-08-29 12:51:14 +03:30
parent e3af33c8e0
commit 14699d1d52

View File

@ -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) {