Closed dicrtarasov closed 3 years ago
protected function getActions($controller)
{
- // -
foreach ($externalActions as $id => $externalAction) {
if (is_array($externalAction)) {
if (isset($externalAction['class'])) {
$actions[$id] = $externalAction['class'];
}
} elseif (is_string($externalAction)) {
$actions[$id] = $externalAction;
}
}
- // -
}
It's already fixed in master, waiting for release.
PHP Warning – yii\base\ErrorException Illegal string offset 'class' in in /home/apkv/sites_dev/vendor/yiisoft/yii2-debug/src/models/router/ActionRoutes.php: 103
$externalActions:
Actions defined in short way:
So, need to check if $externalAction defined as array or simple string:
yii2-debug : 2.1.5