diff --git a/_define.php b/_define.php index f0df685..256234b 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'improve', 'Tiny tools to fix things for module devs', 'Jean-Christian Denis and contributors', - '0.7', + '0.7.1', [ 'requires' => [['core', '2.19']], 'permissions' => null, diff --git a/dcstore.xml b/dcstore.xml index 7fa5633..aba3419 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ improve - 0.7 + 0.7.1 Jean-Christian Denis and contributors Tiny tools to fix things for module devs - https://github.com/JcDenis/improve/releases/download/v0.7/plugin-improve.zip + https://github.com/JcDenis/improve/releases/download/v0.7.1/plugin-improve.zip 2.19 https://github.com/JcDenis/improve https://github.com/JcDenis/improve diff --git a/inc/class.improve.php b/inc/class.improve.php index 95d1e83..ceab866 100644 --- a/inc/class.improve.php +++ b/inc/class.improve.php @@ -295,7 +295,13 @@ class Improve return $this->core->adminurl->get('admin.plugin.improve', $params, '&'); } - public static function cleanExtensions(string|array $in): array + /** + * Check and clean file extension + * + * @param string|array $in Extension(s) to clean + * @return array Cleaned extension(s) + */ + public static function cleanExtensions($in): array { $out = []; if (!is_array($in)) { @@ -405,7 +411,7 @@ class ImproveDefinition * * @return boolean Success */ - private function registerModule(string $name, string $desc, string $author, string $version, string|array $properties = []): bool // @phpstan-ignore-line + private function registerModule(string $name, string $desc, string $author, string $version, $properties = []): bool // @phpstan-ignore-line { if (!is_array($properties)) { $args = func_get_args();