From 750c7c15f9da176e3730318028a7b5ad8399fba6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 16 Jul 2023 10:50:42 +0200 Subject: [PATCH] fix phpstan --- _define.php | 2 +- dcstore.xml | 4 ++-- src/Task/PhpStan.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_define.php b/_define.php index 0755078..7a476e1 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', - '1.3', + '1.3.1', [ 'requires' => [ ['php', '8.1'], diff --git a/dcstore.xml b/dcstore.xml index 211e177..9d9dccf 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ improve - 1.3 + 1.3.1 Jean-Christian Denis and contributors Tiny tools to fix things for module devs - https://github.com/JcDenis/improve/releases/download/v1.3/plugin-improve.zip + https://github.com/JcDenis/improve/releases/download/v1.3.1/plugin-improve.zip 2.27 https://github.com/JcDenis/improve https://github.com/JcDenis/improve diff --git a/src/Task/PhpStan.php b/src/Task/PhpStan.php index 88eb8e1..ec9b0a3 100644 --- a/src/Task/PhpStan.php +++ b/src/Task/PhpStan.php @@ -90,7 +90,7 @@ class PhpStan extends Task public function isConfigured(): bool { - return !dcCore::app()->blog?->settings->get(My::id())->get('nodetails'); + return !My::settings()?->get('nodetails'); } public function header(): ?string @@ -170,7 +170,7 @@ class PhpStan extends Task ]), ])->render() . ( !self::$user_ui_colorsyntax ? '' : - Page::jsLoad('/src/Task/phpstan/phpstan.improve.js') . + My::jsLoad('/src/Task/phpstan/phpstan.improve.js') . Page::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme) ); }