mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-30 19:50:36 -04:00
Strongly type the argument list to the model::validate method.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user