Skip to content

Conversation

@CarlSchwan
Copy link
Member

@CarlSchwan CarlSchwan commented Jan 7, 2026

Summary

There are still 1200 more to fix before we can enable static analysis for the tests, but at least this prepare the ground for doing that by fixing some repetitive issues.

TODO

  • ...

Checklist

@CarlSchwan CarlSchwan added this to the Nextcloud 33 milestone Jan 7, 2026
@CarlSchwan CarlSchwan self-assigned this Jan 7, 2026
@CarlSchwan CarlSchwan added 3. to review Waiting for reviews technical debt tests Related to tests labels Jan 7, 2026
There are still 1200 more to fix before we can enable static analysis
for the tests.

Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the carl/fix-psalm-tests1 branch from 159a46c to 5184975 Compare January 7, 2026 14:00
@CarlSchwan CarlSchwan marked this pull request as ready for review January 8, 2026 15:41
@CarlSchwan CarlSchwan requested review from artonge, leftybournes, provokateurin and sorbaugh and removed request for a team January 8, 2026 15:41
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 9, 2026
* @return Backend|MockObject
*/
protected function getBackend(array $methods = []): Backend {
protected function getBackend(array $methods = []): Backend|MockObject {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
protected function getBackend(array $methods = []): Backend|MockObject {
protected function getBackend(array $methods = []): Backend|(MockObject&Backend) {

But I don't think php support it yet

/**
* Creates a new global storages controller.
*
* @param string $AppName application name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$appName is not type in the constructor

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

Labels

3. to review Waiting for reviews technical debt tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants