fix(comments): Fix missing return type on new method

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/54689/head
Joas Schilling 2025-08-28 08:57:10 +07:00
parent 2d87655e2c
commit 102c778228
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
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,7 +56,7 @@ 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 {