1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-10 17:45:18 +02:00

Merge pull request #6600 from Crizz0/ticket/17306

[ticket/17306] Add type declaration to get_context and array for $words
This commit is contained in:
Marc Alexander 2024-04-28 21:07:08 +02:00
commit df43810f55
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -320,7 +320,7 @@ function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_po
* Generates a text with approx. the specified length which contains the specified words and their context * Generates a text with approx. the specified length which contains the specified words and their context
* *
* @param string $text The full text from which context shall be extracted * @param string $text The full text from which context shall be extracted
* @param string $words An array of words which should be contained in the result, has to be a valid part of a PCRE pattern (escape with preg_quote!) * @param array $words An array of words which should be contained in the result, has to be a valid part of a PCRE pattern (escape with preg_quote!)
* @param int $length The desired length of the resulting text, however the result might be shorter or longer than this value * @param int $length The desired length of the resulting text, however the result might be shorter or longer than this value
* *
* @return string Context of the specified words separated by "..." * @return string Context of the specified words separated by "..."