Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Oct 12, 2020

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #23310

The QBMapper is kind of a generic type, though this concept does not
exist in php. Hence you have a lot of type coercion in subtypes (mappers
in the individual apps) because you suddenly don't expect an Entity[]
but your specific type.

Luckily Psalm lets us type those. Then in the subclass you can
psalm-implement the mapper with a concrete type and psalm will do all
the magic to ensure types are used correctly.

Signed-off-by: Christoph Wurst <[email protected]>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

I don't see anything incomplete. All the changes from a1b3510 are here

@MorrisJobke
Copy link
Member

I don't see anything incomplete. All the changes from a1b3510 are here

Got it 🙈

Sorry

@MorrisJobke MorrisJobke merged commit 5387696 into stable19 Oct 12, 2020
@MorrisJobke MorrisJobke deleted the backport/23310/stable19 branch October 12, 2020 11:49
@rullzer rullzer mentioned this pull request Nov 9, 2020
1 task
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.

3 participants