Skip to content

Commit

Permalink
fix test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Sep 21, 2023
1 parent d5b0b73 commit 6be8c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Module/ModuleAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function __construct(ApplicationAbstract $app = null)
$this->app = $app ?? new class() extends ApplicationAbstract {};

if (self::$auditor === null && static::ID !== 1006200000) {
self::$auditor = $this->app?->moduleManager->get('Auditor', 'Api');
self::$auditor = static::$auditor::ID === 0 ? null : self::$auditor;
self::$auditor = $this->app->moduleManager?->get('Auditor', 'Api');

Check failure on line 128 in Module/ModuleAbstract.php

View workflow job for this annotation

GitHub Actions / static-tests (8.1)

Using nullsafe method call on non-nullable type phpOMS\Module\ModuleManager. Use -> instead.
self::$auditor = self::$auditor === null || self::$auditor::ID === 0 ? null : self::$auditor;
}
}

Expand Down

0 comments on commit 6be8c1f

Please sign in to comment.