fix return type of dataconst

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-11-05 12:24:43 +01:00
parent 897e3e7e6e
commit df0f7b8d85
2 changed files with 5 additions and 21 deletions

View file

@ -8,7 +8,7 @@ class DataConst {
return '/mnt/docker-aio-config/data/';
}
return realpath(__DIR__ . '/../../data/');
return (string)realpath(__DIR__ . '/../../data/');
}
public static function GetSessionDirectory() : string {
@ -16,7 +16,7 @@ class DataConst {
return '/mnt/docker-aio-config/session/';
}
return realpath(__DIR__ . '/../../session/');
return (string)realpath(__DIR__ . '/../../session/');
}
public static function GetConfigFile() : string {
@ -56,14 +56,14 @@ class DataConst {
}
public static function GetCommunityContainersDirectory() : string {
return realpath(__DIR__ . '/../../../community-containers/');
return (string)realpath(__DIR__ . '/../../../community-containers/');
}
public static function GetCollaboraSeccompProfilePath() : string {
return realpath(__DIR__ . '/../cool-seccomp-profile.json');
return (string)realpath(__DIR__ . '/../cool-seccomp-profile.json');
}
public static function GetContainersDefinitionPath() : string {
return realpath(__DIR__ . '/../containers.json');
return (string)realpath(__DIR__ . '/../containers.json');
}
}