1
1
Fork 0

Definiing parameter type

This commit is contained in:
Michael 2021-07-12 14:28:13 +00:00
parent b80cca61e6
commit aee652117c

View file

@ -36,7 +36,7 @@ class Plaintext
* *
* @todo For Twitter URLs aren't shortened, but they have to be calculated as if. * @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("…", ENT_QUOTES, 'UTF-8'); $ellipsis = html_entity_decode("…", ENT_QUOTES, 'UTF-8');