Added return types

This commit is contained in:
cp6 2023-08-19 23:48:34 +10:00
parent 3bef30d861
commit ae9b23cba7

View File

@ -159,7 +159,7 @@ class Yabs extends Model
return $kbs / 1000;
}
public static function insertFromJson($data, string $server_id)
public static function insertFromJson($data, string $server_id): bool
{
$data = (object)$data;
try {