summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-12-15 14:22:54 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-24 14:21:40 +0100
commit8a952b73d65d332832c3468e1c6af5108b80bc83 (patch)
tree854a87229cafe7c8eb33b0376e0210785ba6aebe /lib/public
parent21b80a89b0d34318c257cc93eba9333228f1854e (diff)
downloadnextcloud-server-8a952b73d65d332832c3468e1c6af5108b80bc83.tar.gz
nextcloud-server-8a952b73d65d332832c3468e1c6af5108b80bc83.zip
Access id property without getter.
Some implementations typehint getId to integer but default is null. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index 3e0a3c206e7..a6a44b8902e 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -119,7 +119,7 @@ abstract class QBMapper {
$qb->execute();
- if($entity->getId() === null) {
+ if($entity->id === null) {
$entity->setId((int)$qb->getLastInsertId());
}