summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-21 11:02:05 +0200
committerJoas Schilling <coding@schilljs.com>2020-10-21 11:02:05 +0200
commit2dd50b4adc7b8b7cef653a6fa2fb28cc0cffc4d8 (patch)
treee763cdf7f52fc95348e4fdc76734264109f3e80c
parent4b8fec49e733a9da13f3f5557b611a4059f6021c (diff)
downloadnextcloud-server-2dd50b4adc7b8b7cef653a6fa2fb28cc0cffc4d8.tar.gz
nextcloud-server-2dd50b4adc7b8b7cef653a6fa2fb28cc0cffc4d8.zip
Fix return type
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Comments/Manager.php3
-rw-r--r--lib/public/Comments/ICommentsManager.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index 4ea1a8076c1..1830fb00f3c 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -685,7 +685,8 @@ class Manager implements ICommentsManager {
* @param string $verb
* @param string $actorType
* @param string[] $actors
- * @return array
+ * @return \DateTime[] Map of "string actor" => "\DateTime most recent comment date"
+ * @psalm-return array<string, \DateTime>
* @since 21.0.0
*/
public function getLastCommentDateByActor(
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index d90179acada..5f381f59647 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -205,7 +205,8 @@ interface ICommentsManager {
* @param string $verb
* @param string $actorType
* @param string[] $actors
- * @return array Map of "string actor" => "\DateTime most recent comment date"
+ * @return \DateTime[] Map of "string actor" => "\DateTime most recent comment date"
+ * @psalm-return array<string, \DateTime>
* @since 21.0.0
*/
public function getLastCommentDateByActor(