mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 23:44:11 +01:00
setup: phpstan level 2
setup: phpstan level 2
This commit is contained in:
@@ -19,7 +19,7 @@ class ModuleInstallationRepository
|
||||
|
||||
final public static function SetInstance(?ModuleInstallationRepository $oInstance): void
|
||||
{
|
||||
static::$oInstance = $oInstance;
|
||||
self::$oInstance = $oInstance;
|
||||
}
|
||||
|
||||
private ?array $aSelectInstall = null;
|
||||
@@ -205,8 +205,8 @@ SQL;
|
||||
$oSet->SetLimit($iOffset + 1);
|
||||
|
||||
$iParentId = 0;
|
||||
/** @var \DBObject $oModuleInstallation */
|
||||
while ($oModuleInstallation = $oSet->Fetch()) {
|
||||
while (!is_null($oModuleInstallation = $oSet->Fetch())) {
|
||||
/** @var \DBObject $oModuleInstallation */
|
||||
if ($iOffset == 0) {
|
||||
$iParentId = $oModuleInstallation->Get('id');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user