cosmetic type hint

This commit is contained in:
Jean-Christian Paul Denis 2023-03-17 00:00:34 +01:00
parent 9ff0b56fda
commit 478416d063
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 3 additions and 3 deletions

View File

@ -35,12 +35,12 @@ class My
'_disabled',
];
public static function id()
public static function id(): string
{
return basename(dirname(__DIR__));
}
public static function name()
public static function name(): string
{
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
}

View File

@ -81,7 +81,7 @@ class Utils
return !(empty($path) || empty($file) || !is_writable(dirname($path . '/' . $file)));
}
public static function getRepositoryDir($dir)
public static function getRepositoryDir(?string $dir): string
{
if (empty($dir)) {
try {