2
0
Fork 0
forked from flashii/eeprom

Fixed compatibility issues with PHP 8.1.

This commit is contained in:
flash 2022-07-05 14:02:49 +00:00
parent 34c95622f1
commit 2d240fe1b1
3 changed files with 3 additions and 3 deletions

View file

@ -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(),

View file

@ -196,7 +196,7 @@ final class Upload implements JsonSerializable {
}
}
public function jsonSerialize() {
public function jsonSerialize(): mixed {
return [
'id' => $this->getId(),
'url' => $this->getPublicUrl(),

View file

@ -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(),