Fixed compatibility issues with PHP 8.1.
This commit is contained in:
parent
34c95622f1
commit
2d240fe1b1
3 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ final class Application implements JsonSerializable {
|
|||
return $this->app_expiry ?? -1;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
public function jsonSerialize(): mixed {
|
||||
return [
|
||||
'id' => $this->getId(),
|
||||
'name' => $this->getName(),
|
||||
|
|
|
@ -196,7 +196,7 @@ final class Upload implements JsonSerializable {
|
|||
}
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
public function jsonSerialize(): mixed {
|
||||
return [
|
||||
'id' => $this->getId(),
|
||||
'url' => $this->getPublicUrl(),
|
||||
|
|
|
@ -47,7 +47,7 @@ class User implements JsonSerializable {
|
|||
return $this->getRestricted() > 0;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
public function jsonSerialize(): mixed {
|
||||
return [
|
||||
'id' => $this->getId(),
|
||||
'size_multi' => $this->getSizeMultiplier(),
|
||||
|
|
Loading…
Reference in a new issue