From 87453af7591ecc5547cdd2568a429a4e1476eb6c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 28 Dec 2019 19:00:19 +0100 Subject: [PATCH] Change typings --- src/danog/MadelineProto/TL/Conversion/BotAPI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPI.php b/src/danog/MadelineProto/TL/Conversion/BotAPI.php index 0d42fcc8..73084fc1 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPI.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPI.php @@ -23,7 +23,7 @@ use danog\MadelineProto\Logger; trait BotAPI { - private function htmlEntityDecode($stuff) + private function htmlEntityDecode(string $stuff): string { return \html_entity_decode(\preg_replace('#< *br */? *>#', "\n", $stuff)); } @@ -97,9 +97,9 @@ trait BotAPI * @param string $text Text * @param integer $length Length * - * @return string + * @return array */ - public static function mbStrSplit(string $text, int $length): string + public static function mbStrSplit(string $text, int $length): array { $tlength = \mb_strlen($text, 'UTF-8'); $result = [];