]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Strings.php
Merge pull request #11490 from annando/issue-11487
[friendica.git] / src / Util / Strings.php
index 1be56d0e78f307db5c487ed24d1ab96488e5f73e..8666d30c18310d68574d37d72940c307b37ae52d 100644 (file)
@@ -1,6 +1,6 @@
 <?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
  *
@@ -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);