Merge pull request #12134 from Quix0r/fixes/type-hints

Added type-hints
develop
Hypolite Petovan 2022-11-07 13:42:38 -05:00 zatwierdzone przez GitHub
commit 1c80969db9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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 = '^\[\]';