Skip to content

Conversation

@CarlSchwan
Copy link
Member

And some other minor cleanup in ViewInfoCache

@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Feb 5, 2026
@CarlSchwan CarlSchwan self-assigned this Feb 5, 2026
@nickvergessen nickvergessen requested review from miaulalala and removed request for nickvergessen February 5, 2026 15:39
@miaulalala
Copy link
Collaborator

Backport?

@miaulalala
Copy link
Collaborator

miaulalala commented Feb 9, 2026

Linter and PHPUnit are not happy:


There were 3 errors:

1) OCA\Activity\Tests\ViewInfoCacheTest::testGetInfoById with data set #0 ('user', 23, 'path', [], true, 'findInfoById')
PHPUnit\Framework\MockObject\IncompatibleReturnValueException: Method findInfoById may not return value of type string, its declared return type is "array"

/home/runner/work/activity/activity/apps/activity/tests/ViewInfoCacheTest.php:122

2) OCA\Activity\Tests\ViewInfoCacheTest::testGetInfoById with data set #1 ('user', 23, 'path', [['returnCache']], true, 'findInfoById')
PHPUnit\Framework\MockObject\IncompatibleReturnValueException: Method findInfoById may not return value of type string, its declared return type is "array"

/home/runner/work/activity/activity/apps/activity/tests/ViewInfoCacheTest.php:122

3) OCA\Activity\Tests\ViewInfoCacheTest::testGetInfoById with data set #2 ('user', 23, 'path', [['returnCache']], true, 'findInfoById')
PHPUnit\Framework\MockObject\IncompatibleReturnValueException: Method findInfoById may not return value of type string, its declared return type is "array"

/home/runner/work/activity/activity/apps/activity/tests/ViewInfoCacheTest.php:122

And some other minor cleanup in ViewInfoCache

Signed-off-by: Carl Schwan <[email protected]>
Fix psalm when running locally

Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan
Copy link
Member Author

/backport to stable33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants