mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
fix test
This commit is contained in:
parent
d78dfa7e74
commit
7882ce95be
|
|
@ -125,7 +125,8 @@ abstract class ModuleAbstract
|
||||||
$this->app = $app ?? new class() extends ApplicationAbstract {};
|
$this->app = $app ?? new class() extends ApplicationAbstract {};
|
||||||
|
|
||||||
if (self::$auditor === null && static::ID !== 1006200000) {
|
if (self::$auditor === null && static::ID !== 1006200000) {
|
||||||
self::$auditor = $this->app->moduleManager->get('Auditor', 'Api');
|
/** @phpstan-ignore-next-line */
|
||||||
|
self::$auditor = $this->app->moduleManager?->get('Auditor', 'Api');
|
||||||
self::$auditor = self::$auditor === null || self::$auditor::ID === 0 ? null : self::$auditor;
|
self::$auditor = self::$auditor === null || self::$auditor::ID === 0 ? null : self::$auditor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user