Skip to content
Unverified Commit a1b35103 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Add template typing to the QBMapper



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: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent b76698c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment