master
Jean-Christian Paul Denis 2023-04-30 01:19:18 +02:00
parent 1c11d73f61
commit bbe63c1b0b
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,9 @@ class My
*/
public static function name(): string
{
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
$name = dcCore::app()->plugins->moduleInfo(self::id(), 'name');
return __(is_string($name) ? $name : self::id());
}
/**

View File

@ -22,7 +22,7 @@ use Dotclear\Helper\File\Path;
*/
trait TraitCleanerDir
{
/** @var array The excluded files */
/** @var array<int,string> The excluded files */
public const EXCLUDED = [
'.',
'..',