Remove unnecessary test
Question interface guarantees, that $validator is callable or null
This commit is contained in:
parent
9543b36a34
commit
5dc9bd9fe3
@ -32,7 +32,7 @@ class SymfonyQuestionHelper extends QuestionHelper
|
||||
{
|
||||
$validator = $question->getValidator();
|
||||
$question->setValidator(function ($value) use ($validator) {
|
||||
if (null !== $validator && is_callable($validator)) {
|
||||
if (null !== $validator) {
|
||||
$value = $validator($value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user