8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.1.2
Description Form input placeholder can be empty string or false but can not be null. Why? Another attributes like for example class can by null.
Error: Argument 1 passed to Symfony\Bridge\Twig\Extension\TranslationExtension::trans() must be of the type string, null given
How to reproduce
public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('name', null, ['attr' => [ 'placeholder' => null, ]]) ; }