diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-09-29 13:54:17 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-29 14:56:07 +0200 |
commit | 35b53ecd404a74edea3c6866e451c4819bdc9ea8 (patch) | |
tree | dac46834d8fa7ec0122243f94604c3d2215b4d22 /lib/Db/EntityJSONSerializer.php | |
parent | d6d169be15913404f99b86c39a03bc71942c9f77 (diff) |
OPML export command and fixes
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Db/EntityJSONSerializer.php')
-rw-r--r-- | lib/Db/EntityJSONSerializer.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Db/EntityJSONSerializer.php b/lib/Db/EntityJSONSerializer.php index 3afc18202..2646ed97a 100644 --- a/lib/Db/EntityJSONSerializer.php +++ b/lib/Db/EntityJSONSerializer.php @@ -16,8 +16,14 @@ namespace OCA\News\Db; trait EntityJSONSerializer { - - public function serializeFields($properties) + /** + * Serialize object properties. + * + * @param array $properties Serializable properties + * + * @return array + */ + public function serializeFields(array $properties): array { $result = []; foreach ($properties as $property) { |