Browse Source

Definiing parameter type

pull/10496/head
Michael 7 months ago
parent
commit
aee652117c
  1. 2
      src/Content/Text/Plaintext.php

2
src/Content/Text/Plaintext.php

@ -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("…", ENT_QUOTES, 'UTF-8');

Loading…
Cancel
Save