mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-19 13:25:36 -04:00
Strongly type the argument list to the model::validate method.
This commit is contained in:
@@ -62,7 +62,7 @@ class User_Model extends ORM implements User_Definition {
|
||||
/**
|
||||
* Specify our rules here so that we have access to the instance of this model.
|
||||
*/
|
||||
public function validate($array=null) {
|
||||
public function validate(Validation $array=null) {
|
||||
// validate() is recursive, only modify the rules on the outermost call.
|
||||
if (!$array) {
|
||||
$this->rules = array(
|
||||
|
||||
Reference in New Issue
Block a user