From 8ec6713c518951a24a787635c7b52dd5dcc4c50f Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Fri, 9 Feb 2024 23:55:38 -0500 Subject: [PATCH] refactor: Remove phpstan-ignore --- src/helpers/PluginTemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/PluginTemplate.php b/src/helpers/PluginTemplate.php index 0f9603c..a8ee24c 100644 --- a/src/helpers/PluginTemplate.php +++ b/src/helpers/PluginTemplate.php @@ -60,7 +60,8 @@ public static function renderPluginTemplate( string $templatePath, array $params = [], string $minifier = null, - ): string { + ): string + { // Stash the old template mode, and set it Control Panel template mode $oldMode = Craft::$app->view->getTemplateMode(); try { @@ -77,7 +78,6 @@ public static function renderPluginTemplate( /** @var Minify|null $minify */ $minify = Craft::$app->getPlugins()->getPlugin(self::MINIFY_PLUGIN_HANDLE); if ($minify) { - /** @phpstan-ignore-next-line */ $htmlText = $minify->minify->$minifier($htmlText); } }