]> git.mxchange.org Git - friendica.git/commitdiff
Defining return value
authorMichael <heluecht@pirati.ca>
Mon, 12 Jul 2021 20:06:35 +0000 (20:06 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 12 Jul 2021 20:06:35 +0000 (20:06 +0000)
src/Content/Text/Plaintext.php

index e177ac387c9514534100da0ecdf6c93fedc3b566..e635d727e84dfe9958099a068fda33664dfa32e4 100644 (file)
@@ -36,7 +36,7 @@ class Plaintext
         *
         * @todo For Twitter URLs aren't shortened, but they have to be calculated as if.
         */
-       public static function shorten(string $msg, int $limit, int $uid = 0)
+       public static function shorten(string $msg, int $limit, int $uid = 0):string
        {
                $ellipsis = html_entity_decode("&#x2026;", ENT_QUOTES, 'UTF-8');