It was working before, but suddenly, the validator stopped working correctly.
$test = new Text('test', [
'placeholder' => 'Test',
'class' => 'pure-input-1'
]);
$test->addValidator(new Identical([
'value' => 'abc',
'message' => 'Security token (TEST) validation failed.',
]));
$this->add($test);
On the form I input exactly the same "abc" and submit.
View: echo $form->render('test');
if (! $form->isValid($request->getPost()) ) {
// Is not valid
}
I checked the POST value, the form object's value, its the same, if I do a == comparison, i get true.
Is this a new issue with the validator in 2.0.4?