Commit 1ca215df by Qiang Xue

Added default value of Validator::attributes.

parent f68bc346
...@@ -74,7 +74,7 @@ abstract class Validator extends Component ...@@ -74,7 +74,7 @@ abstract class Validator extends Component
/** /**
* @var array list of attributes to be validated. * @var array list of attributes to be validated.
*/ */
public $attributes; public $attributes = array();
/** /**
* @var string the user-defined error message. It may contain the following placeholders which * @var string the user-defined error message. It may contain the following placeholders which
* will be replaced accordingly by the validator: * will be replaced accordingly by the validator:
......
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