Skip to content

Conversation

@max-nextcloud
Copy link
Collaborator

Also works with the new snowflake ids.

Fixes psalm failures such as https://github.com/nextcloud/text/actions/runs/20987461914/job/60324608033?pr=8153

Signed-off-by: Max <max@nextcloud.com>
Psalm expects the non-null id to be initialized in the constructor.

But entity classes have properties which are typed but not set in constructor,
because we’re only supposed to build them with static factory function fromRow or so.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud changed the title chore(psalm): use getId() instead of id chore(psalm): use getId() instead of id and add errors to baseline Jan 15, 2026
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! Code changes look good to me.

@max-nextcloud max-nextcloud merged commit d7a6ff7 into main Jan 15, 2026
75 of 83 checks passed
@max-nextcloud max-nextcloud deleted the fix/psalm-errors branch January 15, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants