diff --git a/www/lib/CoreLibs/Admin/EditBase.php b/www/lib/CoreLibs/Admin/EditBase.php index e7fb3fd5..20312b52 100644 --- a/www/lib/CoreLibs/Admin/EditBase.php +++ b/www/lib/CoreLibs/Admin/EditBase.php @@ -14,9 +14,6 @@ declare(strict_types=1); namespace CoreLibs\Admin; -use Exception; -use SmartyException; - class EditBase { /** @var array */ diff --git a/www/lib/CoreLibs/Template/SmartyExtend.php b/www/lib/CoreLibs/Template/SmartyExtend.php index 54b024f6..10eaa981 100644 --- a/www/lib/CoreLibs/Template/SmartyExtend.php +++ b/www/lib/CoreLibs/Template/SmartyExtend.php @@ -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', [