mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-07 16:36:42 +08:00
Fixed inconsistent return of \yii\console\Application::runAction()
This commit is contained in:
@ -25,6 +25,7 @@ Yii Framework 2 Change Log
|
|||||||
- Bug #3311: Fixed the bug that `yii\di\Container::has()` did not return correct value (mgrechanik, qiangxue)
|
- Bug #3311: Fixed the bug that `yii\di\Container::has()` did not return correct value (mgrechanik, qiangxue)
|
||||||
- Bug #3327: Fixed "Unable to find debug data" when logging objects with circular references (jarekkozak, samdark)
|
- Bug #3327: Fixed "Unable to find debug data" when logging objects with circular references (jarekkozak, samdark)
|
||||||
- Bug #3368: Fix for comparing numeric attributes in JavaScript (technixp)
|
- Bug #3368: Fix for comparing numeric attributes in JavaScript (technixp)
|
||||||
|
- Bug: Fixed inconsistent return of `\yii\console\Application::runAction()` (samdark)
|
||||||
- Enh #2264: `CookieCollection::has()` will return false for expired or removed cookies (qiangxue)
|
- Enh #2264: `CookieCollection::has()` will return false for expired or removed cookies (qiangxue)
|
||||||
- Enh #2837: Error page now shows arguments in stack trace method calls (samdark)
|
- Enh #2837: Error page now shows arguments in stack trace method calls (samdark)
|
||||||
- Enh #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper (exromany, qiangxue)
|
- Enh #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper (exromany, qiangxue)
|
||||||
|
|||||||
@ -138,7 +138,7 @@ class Application extends \yii\base\Application
|
|||||||
return $result;
|
return $result;
|
||||||
} else {
|
} else {
|
||||||
$response = $this->getResponse();
|
$response = $this->getResponse();
|
||||||
$response->exitStatus = (int) $result;
|
$response->exitStatus = $result;
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ class Application extends \yii\base\Application
|
|||||||
public function runAction($route, $params = [])
|
public function runAction($route, $params = [])
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return parent::runAction($route, $params);
|
return (int)parent::runAction($route, $params);
|
||||||
} catch (InvalidRouteException $e) {
|
} catch (InvalidRouteException $e) {
|
||||||
throw new Exception(Yii::t('yii', 'Unknown command "{command}".', ['command' => $route]), 0, $e);
|
throw new Exception(Yii::t('yii', 'Unknown command "{command}".', ['command' => $route]), 0, $e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user