fixed issue #1206
This commit is contained in:
parent
921e232d9d
commit
aa37c82650
|
@ -75,7 +75,7 @@ class Validator {
|
||||||
/**
|
/**
|
||||||
* Create a new validator instance.
|
* Create a new validator instance.
|
||||||
*
|
*
|
||||||
* @param array $attributes
|
* @param mixed $attributes
|
||||||
* @param array $rules
|
* @param array $rules
|
||||||
* @param array $messages
|
* @param array $messages
|
||||||
* @return void
|
* @return void
|
||||||
|
@ -89,7 +89,7 @@ public function __construct($attributes, $rules, $messages = array())
|
||||||
|
|
||||||
$this->rules = $rules;
|
$this->rules = $rules;
|
||||||
$this->messages = $messages;
|
$this->messages = $messages;
|
||||||
$this->attributes = $attributes;
|
$this->attributes = (is_object($attributes)) ? get_object_vars($attributes) : $attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue