Catchable Fatal Error: Object of class Closure could not be converted to string
500 Internal Server Error - ContextErrorException
--
Stack Trace
in vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php at line 166 -
// If "choice_label" is set to false and "expanded" is true, the value false
// should be passed on to the "label" option of the checkboxes/radio buttons
$dynamicLabel = call_user_func($label, $choice, $key, $value);
$label = false === $dynamicLabel ? false : (string) $dynamicLabel;
}
$view = new ChoiceView(
at ErrorHandler ->handleError ('4096', 'Object of class Closure could not be converted to string', '/home/syrine01/Desktop/Project_Console/vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php', '166', array('choice' => 'query_builder', 'value' => 'query_builder', 'label' => object(Closure), 'keys' => array('class' => '0', 'query_builder' => '1', 'required' => '2', 'multiple' => '3', 'expanded' => '4', 'placeholder' => '5'), 'index' => '2', 'attr' => null, 'isPreferred' => array(), 'preferredViews' => array(), 'otherViews' => array(object(ChoiceView)), 'key' => '1', 'nextIndex' => '1', 'dynamicLabel' => object(Closure)))
in vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php at line 166 +
at DefaultChoiceListFactory ::addChoiceView ('query_builder', 'query_builder', object(Closure), array('class' => '0', 'query_builder' => '1', 'required' => '2', 'multiple' => '3', 'expanded' => '4', 'placeholder' => '5'), '2', null, array(), array(), array(object(ChoiceView)))
in vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php at line 232 +
at DefaultChoiceListFactory ::addChoiceViewsGroupedBy (array('class', 'query_builder', 'required', 'multiple', 'expanded', 'placeholder'), object(Closure), array('class' => 'class', 'query_builder' => 'query_builder', 'required' => 'required', 'multiple' => 'multiple', 'expanded' => 'expanded', 'placeholder' => 'placeholder'), array('class' => '0', 'query_builder' => '1', 'required' => '2', 'multiple' => '3', 'expanded' => '4', 'placeholder' => '5'), '2', null, array(), array(), array(object(ChoiceView)))
in vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php at line 131 +
at DefaultChoiceListFactory ->createView (object(ArrayKeyChoiceList), array(), object(Closure), null, null, null)
in vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php at line 23
Partager