Symfony Form - Expected argument of type "string or Symfony\Component\Form\FormTypeInterface", "array" given
You must specify the type of your field before adding options
$builder->add('name', 'text', array('label' => 'Your name'))
For the Symfony version 3+ it should be ,
$builder->add('name', TextType::class, array('label' => 'Your name'))