From e002365d7fe4a157c1ed464151caef92723f876f Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sat, 11 Jan 2020 16:27:01 +0100 Subject: [PATCH] Add type declaration to parameter --- src/Model/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '';