From 478416d063feae06c57085f00bd696b61ebc6eb4 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 17 Mar 2023 00:00:34 +0100 Subject: [PATCH] cosmetic type hint --- src/My.php | 4 ++-- src/Utils.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/My.php b/src/My.php index 9fa5c87..539cf97 100644 --- a/src/My.php +++ b/src/My.php @@ -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')); } diff --git a/src/Utils.php b/src/Utils.php index 00c2586..ab772f1 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -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 {