diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-09-16 11:08:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 11:08:35 +0200 |
commit | 8a328816333496a6ca507782d2b3b47bee470ba2 (patch) | |
tree | 76ee2d5afd60fc45cdb77b68ef416667b69a45a9 /lib/public | |
parent | 1a972d0f47ffaf688ee60781b2d6b1d1740ea4d1 (diff) | |
parent | 247b1dd70e4518012bf4a55dea56a349886b7b38 (diff) | |
download | nextcloud-server-8a328816333496a6ca507782d2b3b47bee470ba2.tar.gz nextcloud-server-8a328816333496a6ca507782d2b3b47bee470ba2.zip |
Merge pull request #48008 from nextcloud/fix/entity/strict-types
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/Db/Entity.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php index a976c45482c..f37107ac128 100644 --- a/lib/public/AppFramework/Db/Entity.php +++ b/lib/public/AppFramework/Db/Entity.php @@ -54,9 +54,8 @@ abstract class Entity { $instance = new static(); foreach ($row as $key => $value) { - $prop = ucfirst($instance->columnToProperty($key)); - $setter = 'set' . $prop; - $instance->$setter($value); + $prop = $instance->columnToProperty($key); + $instance->setter($prop, [$value]); } $instance->resetUpdatedFields(); |