]> git.mxchange.org Git - friendica.git/commitdiff
Definiing parameter type
authorMichael <heluecht@pirati.ca>
Mon, 12 Jul 2021 14:28:13 +0000 (14:28 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 12 Jul 2021 14:28:13 +0000 (14:28 +0000)
src/Content/Text/Plaintext.php

index 45c35cb172c9e4c7410f258f0d2d17ca89fb15c3..e177ac387c9514534100da0ecdf6c93fedc3b566 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($msg, $limit, $uid = 0)
+       public static function shorten(string $msg, int $limit, int $uid = 0)
        {
                $ellipsis = html_entity_decode("&#x2026;", ENT_QUOTES, 'UTF-8');