Add typing to jsonSerialize
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -58,7 +58,7 @@ class Board extends RelationalEntity {
|
||||
$this->shared = -1;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
public function jsonSerialize(): array {
|
||||
$json = parent::jsonSerialize();
|
||||
if ($this->shared === -1) {
|
||||
unset($json['shared']);
|
||||
|
||||
Reference in New Issue
Block a user