]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Strings.php
Merge pull request #11647 from Quix0r/fixes/type-error-exception
[friendica.git] / src / Util / Strings.php
index 3870074e1a7be84cfc3e6b1f4f17ab37fb4ee202..8666d30c18310d68574d37d72940c307b37ae52d 100644 (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);