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
@@ -56,7 +56,7 @@ class Comment_Model extends ORM {
/**
* Add some custom per-instance rules.
*/
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(