more fixes

This commit is contained in:
Steffen Müller
2023-06-20 17:32:10 +02:00
parent 8731add072
commit 9d5ab1f0d2
9 changed files with 26 additions and 13 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ class Service implements JsonSerializable
* @param Service[] $array array of services
* @return void
*/
public static function current_status($array){
public static function current_status($array): void{
global $all, $some, $classes;
$statuses = array(0,0,0,0);
$worst = 5;
@@ -258,7 +258,7 @@ class Service implements JsonSerializable
}
}
public function jsonSerialize() {
public function jsonSerialize(): mixed {
global $statuses;
return [
"id" => $this->id,