Escape BBCode tag parsing avoidance tags when processing abstracts

- Improve documentation for related methods
This commit is contained in:
Hypolite Petovan 2022-05-07 22:19:11 -04:00
parent 25876099ce
commit 510dacf4df
2 changed files with 20 additions and 23 deletions

View file

@ -485,9 +485,8 @@ class Strings
* @param string $regex
* @param callable $callback
* @return string
* @throws \Exception
*/
public static function performWithEscapedBlocks(string $text, string $regex, callable $callback)
public static function performWithEscapedBlocks(string $text, string $regex, callable $callback): string
{
// Enables nested use
$executionId = random_int(PHP_INT_MAX / 10, PHP_INT_MAX);