From: Matthew Exon <git.mexon@spamgourmet.com>
Date: Sat, 11 Jan 2020 15:27:01 +0000 (+0100)
Subject: Add type declaration to parameter
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e002365d7fe4a157c1ed464151caef92723f876f;p=friendica.git

Add type declaration to parameter
---

diff --git a/src/Model/Photo.php b/src/Model/Photo.php
index 8b65c0d0e0..f235b1b8c4 100644
--- a/src/Model/Photo.php
+++ b/src/Model/Photo.php
@@ -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 '';