Fix #20532: Add missing return statements in CacheController::actionFlushSchema, FixtureController::actionUnload, HelpController::actionIndex and ServeController::actionIndex

This commit is contained in:
Maksim Spirkov
2025-09-30 02:17:34 +04:00
committed by GitHub
parent 848cd97849
commit dba9e4d76d
8 changed files with 15 additions and 50 deletions

View File

@ -169,6 +169,8 @@ class CacheController extends Controller
} catch (\Exception $e) {
$this->stdout($e->getMessage() . "\n\n", Console::FG_RED);
}
return ExitCode::OK;
}
/**

View File

@ -232,6 +232,8 @@ class FixtureController extends Controller
$this->unloadFixtures($this->createFixtures($fixtures));
$this->notifyUnloaded($fixtures);
return ExitCode::OK;
}
/**

View File

@ -11,6 +11,7 @@ use Yii;
use yii\base\Application;
use yii\console\Controller;
use yii\console\Exception;
use yii\console\ExitCode;
use yii\helpers\Console;
use yii\helpers\Inflector;
@ -66,6 +67,8 @@ class HelpController extends Controller
} else {
$this->getDefaultHelp();
}
return ExitCode::OK;
}
/**

View File

@ -9,6 +9,7 @@ namespace yii\console\controllers;
use Yii;
use yii\console\Controller;
use yii\console\ExitCode;
use yii\helpers\Console;
/**
@ -87,6 +88,8 @@ class ServeController extends Controller
}
$this->runCommand($command);
return ExitCode::OK;
}
/**