Commit 286e8efe by Serge Postrash

Updated phpdoc for \yii\widgets\DetailView [ckip ci]

This widget usage is not only restricted with `Model` or associative array (see its `normalizeAttributes()` method)
parent c1d98722
......@@ -49,8 +49,9 @@ use yii\helpers\Inflector;
class DetailView extends Widget
{
/**
* @var array|object the data model whose details are to be displayed. This can be either a [[Model]] instance
* or an associative array.
* @var array|object the data model whose details are to be displayed. This can be a [[Model]] instance,
* an associative array, an object that implements [[Arrayable]] interface or simply an object with defined
* public accessible non-static properties.
*/
public $model;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment