fix phpstan mixed warning
parent
58a903a7c6
commit
ad87b40d31
|
@ -22,9 +22,10 @@ class Install extends dcNsProcess
|
||||||
{
|
{
|
||||||
public static function init(): bool
|
public static function init(): bool
|
||||||
{
|
{
|
||||||
static::$init = defined('DC_CONTEXT_ADMIN')
|
if (defined('DC_CONTEXT_ADMIN') && My::phpCompliant()) {
|
||||||
&& My::phpCompliant()
|
$version = dcCore::app()->plugins->moduleInfo(My::id(), 'version');
|
||||||
&& dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
|
static::$init = is_string($version) ? dcCore::app()->newVersion(My::id(), $version) : true;
|
||||||
|
}
|
||||||
|
|
||||||
return static::$init;
|
return static::$init;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue