]> git.mxchange.org Git - friendica.git/commitdiff
Add type declaration to parameter
authorMatthew Exon <git.mexon@spamgourmet.com>
Sat, 11 Jan 2020 15:27:01 +0000 (16:27 +0100)
committerMatthew Exon <git.mexon@spamgourmet.com>
Sat, 11 Jan 2020 15:27:01 +0000 (16:27 +0100)
src/Model/Photo.php

index 8b65c0d0e044761b5a6574a00f4d82eb260f6dda..f235b1b8c48d2e70ceb4de5c1b8fcc2710f5d7f4 100644 (file)
@@ -602,7 +602,7 @@ class Photo
         * @param string $image_uri The URI of the photo
         * @return string The rid of the photo, or an empty string if the URI is not local
         */
-       public static function ridFromURI($image_uri)
+       public static function ridFromURI(string $image_uri)
        {
                if (!stristr($image_uri, DI::baseUrl() . '/photo/')) {
                        return '';