Remove not needed use parts and ignore noop new for phan check

This commit is contained in:
Clemens Schwaighofer
2025-01-15 12:53:02 +09:00
parent 7fbc449a5c
commit e063162161
2 changed files with 1 additions and 3 deletions

View File

@@ -14,9 +14,6 @@ declare(strict_types=1);
namespace CoreLibs\Admin;
use Exception;
use SmartyException;
class EditBase
{
/** @var array<mixed> */

View File

@@ -283,6 +283,7 @@ class SmartyExtend extends \Smarty\Smarty
continue;
}
try {
/** @phan-suppress-next-line PhanNoopNew */
new \ReflectionClassConstant($this, $plugin['type']);
} catch (\ReflectionException $e) {
$this->log->error('SmartyExtended plugin load failed, type is not valid', [