From 23ccf41ebd8aaefdc642f10c599d142d7c009138 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 10 Sep 2022 15:31:11 -0700 Subject: [PATCH] Fix byref errors --- lib/Db/TimelineQuery.php | 6 +++--- lib/Util.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Db/TimelineQuery.php b/lib/Db/TimelineQuery.php index 21a61739..997428dd 100644 --- a/lib/Db/TimelineQuery.php +++ b/lib/Db/TimelineQuery.php @@ -33,7 +33,7 @@ class TimelineQuery { */ public function getDays( IConfig &$config, - string &$user): array { + string $user): array { $sql = 'SELECT `*PREFIX*memories`.`dayid`, COUNT(`*PREFIX*memories`.`fileid`) AS count FROM `*PREFIX*memories` @@ -92,8 +92,8 @@ class TimelineQuery { */ public function getDay( IConfig &$config, - string &$user, - int &$dayId): array { + string $user, + int $dayId): array { $sql = 'SELECT `*PREFIX*memories`.`fileid`, *PREFIX*filecache.etag, `*PREFIX*memories`.`isvideo` FROM *PREFIX*memories diff --git a/lib/Util.php b/lib/Util.php index 542d2c97..215775cd 100644 --- a/lib/Util.php +++ b/lib/Util.php @@ -12,7 +12,7 @@ class Util { * @param IConfig $config * @param string $userId */ - public static function getPhotosPath(IConfig &$config, string &$userId) { + public static function getPhotosPath(IConfig &$config, string $userId) { $p = $config->getUserValue($userId, Application::APPNAME, 'timelinePath', ''); if (empty($p)) { return '/Photos/';