We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Validate\Regex wrong number of parameters

$this->validate(new \Phalcon\Validation\Validator\Regex(
            array(
                'field'  => 'mobile',
                'pattern' => '/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/'
            )
));

wrong of parameters?



12.8k

Oh namespace has changed to Phalcon\Mvc\Model\Validator\Regex