Remove not needed use parts and ignore noop new for phan check
This commit is contained in:
@@ -14,9 +14,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace CoreLibs\Admin;
|
namespace CoreLibs\Admin;
|
||||||
|
|
||||||
use Exception;
|
|
||||||
use SmartyException;
|
|
||||||
|
|
||||||
class EditBase
|
class EditBase
|
||||||
{
|
{
|
||||||
/** @var array<mixed> */
|
/** @var array<mixed> */
|
||||||
|
|||||||
@@ -283,6 +283,7 @@ class SmartyExtend extends \Smarty\Smarty
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
/** @phan-suppress-next-line PhanNoopNew */
|
||||||
new \ReflectionClassConstant($this, $plugin['type']);
|
new \ReflectionClassConstant($this, $plugin['type']);
|
||||||
} catch (\ReflectionException $e) {
|
} catch (\ReflectionException $e) {
|
||||||
$this->log->error('SmartyExtended plugin load failed, type is not valid', [
|
$this->log->error('SmartyExtended plugin load failed, type is not valid', [
|
||||||
|
|||||||
Reference in New Issue
Block a user