title: How can I add a style to a form element in Symfony 4?
body: <p>I am working with the formBuilder in Symfony 4:</p>
  
  <pre><code>$form = $this-&gt;createFormBuilder($item)
      -&gt;add('username', TextType::class, array('attr' =&gt; array('class' =&gt; 'form-control')))
  </code></pre>
  
  <p>I want to add a style to the form:</p>
  
  <pre><code>$form = $this-&gt;createFormBuilder($item)
      -&gt;add('username', TextType::class, array('attr' =&gt; array('style' =&gt; 'margin-right:5px'), 'attr' =&gt; array('class' =&gt; 'form-control')))
  </code></pre>
  
  <p>I do not see the style. It is not added to the field...</p>