Validation Documentation WRONG

Hey Guys, fine?

Your documentation for VALIDATION is wrong.

Look.

Your example to StringLength:

->add('telephone', new StringLength(array( 'minimumMessage' => 'The telephone is too short', 'min' => 2 )));

RIGHT WAY (i see this in your C codes)

$this->add('telephone', new StringLength(array( "max" => 130, "min" => 3, "messageMaximum" => "We dont like really long names", "messageMinimum" => "We want more than just their initials" )));

minimumMessage, maximumMessage not work....

Thanks. See ya. L.B.



83.4k

Thanks for pointing it out, could you please submit a PR with the fix? https://github.com/phalcon/docs/tree/master/en