mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
added more tests.
This commit is contained in:
@@ -62,7 +62,7 @@ class DynamicModel extends Model
|
||||
* @param array $attributes the dynamic attributes (name-value pairs, or names) being defined
|
||||
* @param array $config the configuration array to be applied to this object.
|
||||
*/
|
||||
public function __construct(array $attributes, $config = [])
|
||||
public function __construct(array $attributes = [], $config = [])
|
||||
{
|
||||
foreach ($attributes as $name => $value) {
|
||||
if (is_integer($name)) {
|
||||
|
||||
Reference in New Issue
Block a user