aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contactsinteraction/lib/Db/RecentContactMapper.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-09 14:27:59 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-12 11:10:08 +0200
commita1b351036c62e5557ff4f718a919188d23db7332 (patch)
treef26e6e751051700dbd9ae34858fc480cbecb6041 /apps/contactsinteraction/lib/Db/RecentContactMapper.php
parentb76698c547bcaf22857f8ec67a8567399520f73a (diff)
downloadnextcloud-server-a1b351036c62e5557ff4f718a919188d23db7332.tar.gz
nextcloud-server-a1b351036c62e5557ff4f718a919188d23db7332.zip
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>
Diffstat (limited to 'apps/contactsinteraction/lib/Db/RecentContactMapper.php')
0 files changed, 0 insertions, 0 deletions