nextcloud/lib/public/AppFramework/Db
Christoph Wurst a1856176d5 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: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-12 11:12:35 +00:00
..
DoesNotExistException.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Entity.php Fix writing BLOBs to postgres with recent contacts interaction 2020-08-28 14:30:33 +02:00
IMapperException.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Mapper.php Update license headers for 19 2020-04-29 11:57:22 +02:00
MultipleObjectsReturnedException.php Update license headers for 19 2020-04-29 11:57:22 +02:00
QBMapper.php Add template typing to the QBMapper 2020-10-12 11:12:35 +00:00