<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
* @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);