From 3bdc20df155bbb95ebd5381ddb6909bcd89fc961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Mon, 7 Nov 2022 19:16:31 +0100 Subject: [PATCH] Changed: - added type-hints as follow-up commit to #12130 --- src/Content/Text/Plaintext.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Content/Text/Plaintext.php b/src/Content/Text/Plaintext.php index 035739f9fb..ef2337faf4 100644 --- a/src/Content/Text/Plaintext.php +++ b/src/Content/Text/Plaintext.php @@ -114,9 +114,8 @@ class Plaintext * @return array Same array structure than \Friendica\Content\Text\BBCode::getAttachedData * @throws \Friendica\Network\HTTPException\InternalServerErrorException * @see \Friendica\Content\Text\BBCode::getAttachedData - * */ - public static function getPost($item, $limit = 0, $includedlinks = false, $htmlmode = BBCode::MASTODON_API, $target_network = '') + public static function getPost(array $item, int $limit = 0, bool $includedlinks = false, int $htmlmode = BBCode::MASTODON_API, string $target_network = '') { // Remove hashtags $URLSearchString = '^\[\]';