mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(comments): Fix missing return type on new method
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
2d87655e2c
commit
102c778228
2 changed files with 4 additions and 4 deletions
|
|
@ -181,7 +181,7 @@ interface ICommentsManager {
|
|||
* @param \DateTime|null $notOlderThan optional, timestamp of the oldest comments
|
||||
* that may be returned
|
||||
* @param string $verb Limit the verb of the comment - Added in 14.0.0
|
||||
* @return Int
|
||||
* @return int
|
||||
* @since 9.0.0
|
||||
*/
|
||||
public function getNumberOfCommentsForObject($objectType, $objectId, ?\DateTime $notOlderThan = null, $verb = '');
|
||||
|
|
@ -195,7 +195,7 @@ interface ICommentsManager {
|
|||
* @return array<string, int>
|
||||
* @since 32.0.0
|
||||
*/
|
||||
public function getNumberOfCommentsForObjects(string $objectType, array $objectIds, ?\DateTime $notOlderThan = null, string $verb = '');
|
||||
public function getNumberOfCommentsForObjects(string $objectType, array $objectIds, ?\DateTime $notOlderThan = null, string $verb = ''): array;
|
||||
|
||||
/**
|
||||
* @param string $objectType the object type, e.g. 'files'
|
||||
|
|
|
|||
|
|
@ -56,10 +56,10 @@ class FakeManager implements ICommentsManager {
|
|||
return [];
|
||||
}
|
||||
|
||||
public function getNumberOfCommentsForObject($objectType, $objectId, ?\DateTime $notOlderThan = null, $verb = '') {
|
||||
public function getNumberOfCommentsForObject($objectType, $objectId, ?\DateTime $notOlderThan = null, $verb = ''): int {
|
||||
}
|
||||
|
||||
public function getNumberOfCommentsForObjects(string $objectType, array $objectIds, ?\DateTime $notOlderThan = null, string $verb = '') :array {
|
||||
public function getNumberOfCommentsForObjects(string $objectType, array $objectIds, ?\DateTime $notOlderThan = null, string $verb = ''): array {
|
||||
return array_fill_keys($objectIds, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue