mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Remove deprecated InvalidParamException::class
in branch 2.2
. (#19896)
This commit is contained in:
@ -8,8 +8,8 @@
|
||||
namespace yii\console\controllers;
|
||||
|
||||
use Yii;
|
||||
use yii\base\InvalidArgumentException;
|
||||
use yii\base\InvalidConfigException;
|
||||
use yii\base\InvalidParamException;
|
||||
use yii\console\Controller;
|
||||
use yii\console\Exception;
|
||||
use yii\console\ExitCode;
|
||||
@ -536,7 +536,7 @@ class FixtureController extends Controller
|
||||
{
|
||||
try {
|
||||
return Yii::getAlias('@' . str_replace('\\', '/', $this->namespace));
|
||||
} catch (InvalidParamException $e) {
|
||||
} catch (InvalidArgumentException $e) {
|
||||
throw new InvalidConfigException('Invalid fixture namespace: "' . $this->namespace . '". Please, check your FixtureController::namespace parameter');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user