Strongly type the argument list to the model::validate method.

This commit is contained in:
Tim Almdal
2010-01-29 14:04:27 -08:00
parent e4d9ea3394
commit c4e3604315
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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(