Add typing to jsonSerialize

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-04-08 15:39:59 +02:00
parent 9fa12f44ea
commit 46f2d448ab
8 changed files with 15 additions and 21 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ class RelationalEntity extends Entity implements \JsonSerializable {
* @return array serialized data
* @throws \ReflectionException
*/
public function jsonSerialize() {
public function jsonSerialize(): array {
$properties = get_object_vars($this);
$reflection = new \ReflectionClass($this);
$json = [];