Fix Fabpot.io

This commit is contained in:
Mathieu Piot 2018-03-20 14:23:13 +01:00
parent 69ded67643
commit f1d13a860c
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<div>
<?php $widgetAtt = empty($help) ? [] : ['attr'=>['aria-describedby'=> $id.'_help']]; ?>
<?php $widgetAtt = empty($help) ? array() : array('attr' => array('aria-describedby' => $id.'_help')); ?>
<?php echo $view['form']->label($form); ?>
<?php echo $view['form']->errors($form); ?>
<?php echo $view['form']->widget($form, $widgetAtt); ?>

View File

@ -195,7 +195,7 @@ abstract class AbstractBootstrap4LayoutTest extends AbstractBootstrap3LayoutTest
public function testErrorWithNoLabel()
{
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', array('label'=>false));
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', array('label' => false));
$form->addError(new FormError('[trans]Error 1[/trans]'));
$view = $form->createView();
$html = $this->renderLabel($view);