Skip to content

Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property ... #49091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
seb-jean opened this issue Jan 24, 2023 · 29 comments

Comments

@seb-jean
Copy link
Contributor

Symfony version(s) affected

6.2.4

Description

I have an error Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property App\Entity\Preference::$distance of type ?App\Enum\DistanceEnum

I have a property in Entity:

#[ORM\Column(length: 255, nullable: true, enumType: DistanceEnum::class)]
private ?DistanceEnum $distance = null;

How to reproduce

With APP_ENV=dev, I have the error.
With APP_ENV=prod, I have no error.

Possible Solution

No response

Additional Context

No response

@stof
Copy link
Member

stof commented Jan 24, 2023

Without a stack trace, this is not actionable.

@seb-jean
Copy link
Contributor Author

With this configuration, it's works but we lose the functionality of the lazy ghost object

# doctrine.yaml 
doctrine:
    orm:
        enable_lazy_ghost_objects: false

@seb-jean
Copy link
Contributor Author

Here's how to reproduce the error:

Clone repository https://github.com/seb-jean/demo-sf

Execute command: symfony composer install

Go to: https://127.0.0.1:8000/fr

Login with user : jane_admin

Go to: https://127.0.0.1:8000/fr/address/edit and error appears.

@stof
Copy link
Member

stof commented Jan 25, 2023

Can you post the stack trace in this issue as requested ?

@seb-jean
Copy link
Contributor Author

[2023-01-25T12:20:58.010983+00:00] php.CRITICAL: Uncaught Error: Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property App\Entity\Address::$type of type ?App\Enum\AddressEnum {"exception":"[object] (TypeError(code: 0): Cannot assign Symfony\\Component\\VarDumper\\Caster\\CutStub to reference held by property App\\Entity\\Address::$type of type ?App\\Enum\\AddressEnum at C:\\wamp64\\www\\demo-sf\\vendor\\symfony\\http-kernel\\DataCollector\\DataCollector.php:68)"} []
[2023-01-25T12:20:58.126114+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property App\Entity\Address::$type of type ?App\Enum\AddressEnum" at C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\DataCollector\DataCollector.php line 68 {"exception":"[object] (TypeError(code: 0): Cannot assign Symfony\\Component\\VarDumper\\Caster\\CutStub to reference held by property App\\Entity\\Address::$type of type ?App\\Enum\\AddressEnum at C:\\wamp64\\www\\demo-sf\\vendor\\symfony\\http-kernel\\DataCollector\\DataCollector.php:68)"} []

@stof
Copy link
Member

stof commented Jan 25, 2023

those are log messages, not a stack trace but at least, this gives the location of the error.

@nicolas-grekas shouldn't we also exclude enums (like we exclude DateTimeInterface) the DataCollector fallback caster ?

if (\is_object($v) && !$v instanceof \DateTimeInterface && !$v instanceof Stub) {

However, I still don't understand why this would assign it in the entity property.

@seb-jean
Copy link
Contributor Author

TypeError:
Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property App\Entity\Address::$type of type ?App\Enum\AddressEnum

  at C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\DataCollector\DataCollector.php:68
  at Symfony\Component\HttpKernel\DataCollector\DataCollector->Symfony\Component\HttpKernel\DataCollector\{closure}(object(AddressEnum), array('App\Entity\Addressid' => 1, 'App\Entity\Addresstype' => object(AddressEnum), 'App\Entity\Addressname' => 'Adresse du bureau', '__isCloning' => false, 'Proxies\__CG__\App\Entity\AddresslazyObjectState' => object(LazyObjectState)), object(Stub), true, 0)
     (C:\wamp64\www\demo-sf\vendor\symfony\var-dumper\Cloner\AbstractCloner.php:351)
  at Symfony\Component\VarDumper\Cloner\AbstractCloner->castObject(object(Stub), true)
     (C:\wamp64\www\demo-sf\vendor\symfony\var-dumper\Cloner\VarCloner.php:132)
  at Symfony\Component\VarDumper\Cloner\VarCloner->doClone(array('forms' => array('address' => array('id' => 'address', 'name' => 'address', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'address', '_address'), 'cache_key' => '_address_address', 'compound' => true, 'data' => object(Address), 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'address', 'priority' => 0, 'required' => true, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address', 'valid' => true, 'value' => object(Address)), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('data' => object(Address)), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => true, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => object(Address), 'data_class' => 'App\\Entity\\Address', 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(Address)), 'submitted_data' => array(), 'children' => array('type' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), 'name' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '_token' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array())))), 'forms_by_hash' => array('00000000000003050000000000000000' => array('id' => 'address', 'name' => 'address', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'address', '_address'), 'cache_key' => '_address_address', 'compound' => true, 'data' => object(Address), 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'address', 'priority' => 0, 'required' => true, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address', 'valid' => true, 'value' => object(Address)), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('data' => object(Address)), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => true, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => object(Address), 'data_class' => 'App\\Entity\\Address', 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(Address)), 'submitted_data' => array(), 'children' => array('type' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), 'name' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '_token' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array()))), '00000000000003360000000000000000' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), '00000000000003390000000000000000' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '00000000000003460000000000000000' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array())), 'nb_errors' => 0))
     (C:\wamp64\www\demo-sf\vendor\symfony\var-dumper\Cloner\AbstractCloner.php:290)
  at Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar(array('forms' => array('address' => array('id' => 'address', 'name' => 'address', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'address', '_address'), 'cache_key' => '_address_address', 'compound' => true, 'data' => object(Address), 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'address', 'priority' => 0, 'required' => true, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address', 'valid' => true, 'value' => object(Address)), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('data' => object(Address)), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => true, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => object(Address), 'data_class' => 'App\\Entity\\Address', 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(Address)), 'submitted_data' => array(), 'children' => array('type' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), 'name' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '_token' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array())))), 'forms_by_hash' => array('00000000000003050000000000000000' => array('id' => 'address', 'name' => 'address', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'address', '_address'), 'cache_key' => '_address_address', 'compound' => true, 'data' => object(Address), 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'address', 'priority' => 0, 'required' => true, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address', 'valid' => true, 'value' => object(Address)), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('data' => object(Address)), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => true, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => object(Address), 'data_class' => 'App\\Entity\\Address', 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(Address)), 'submitted_data' => array(), 'children' => array('type' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), 'name' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '_token' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array()))), '00000000000003360000000000000000' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), '00000000000003390000000000000000' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '00000000000003460000000000000000' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array())), 'nb_errors' => 0))
     (C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\DataCollector\DataCollector.php:55)
  at Symfony\Component\HttpKernel\DataCollector\DataCollector->cloneVar(array('forms' => array('address' => array('id' => 'address', 'name' => 'address', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'address', '_address'), 'cache_key' => '_address_address', 'compound' => true, 'data' => object(Address), 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'address', 'priority' => 0, 'required' => true, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address', 'valid' => true, 'value' => object(Address)), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('data' => object(Address)), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => true, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => object(Address), 'data_class' => 'App\\Entity\\Address', 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(Address)), 'submitted_data' => array(), 'children' => array('type' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), 'name' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '_token' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array())))), 'forms_by_hash' => array('00000000000003050000000000000000' => array('id' => 'address', 'name' => 'address', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'address', '_address'), 'cache_key' => '_address_address', 'compound' => true, 'data' => object(Address), 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'address', 'priority' => 0, 'required' => true, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address', 'valid' => true, 'value' => object(Address)), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('data' => object(Address)), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => true, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => object(Address), 'data_class' => 'App\\Entity\\Address', 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(Address)), 'submitted_data' => array(), 'children' => array('type' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), 'name' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '_token' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array()))), '00000000000003360000000000000000' => array('id' => 'address_type', 'name' => 'type', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'choice', 'enum', '_address_type'), 'cache_key' => '_address_type_enum', 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choices' => array(object(ChoiceView), object(ChoiceView), object(ChoiceView)), 'compound' => false, 'data' => object(AddressEnum), 'disabled' => false, 'errors' => object(FormErrorIterator), 'expanded' => false, 'form' => object(FormView), 'full_name' => 'address[type]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_type', 'is_selected' => object(Closure), 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'multiple' => false, 'name' => 'type', 'placeholder' => null, 'placeholder_in_choices' => false, 'preferred_choices' => array(), 'priority' => 0, 'required' => true, 'row_attr' => array(), 'separator' => '-------------------', 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_type', 'valid' => true, 'value' => 'boulevard'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('class' => 'App\\Enum\\AddressEnum'), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'choice_attr' => null, 'choice_filter' => null, 'choice_label' => object(Closure), 'choice_loader' => null, 'choice_name' => null, 'choice_translation_domain' => null, 'choice_translation_parameters' => array(), 'choice_value' => object(Closure), 'choices' => array(object(AddressEnum), object(AddressEnum), object(AddressEnum)), 'class' => 'App\\Enum\\AddressEnum', 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => '', 'error_bubbling' => false, 'error_mapping' => array(), 'expanded' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'group_by' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The selected choice is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'multiple' => false, 'placeholder' => null, 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'preferred_choices' => array(), 'priority' => 0, 'property_path' => null, 'required' => true, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => object(AddressEnum), 'view' => 'boulevard'), 'submitted_data' => array(), 'children' => array()), '00000000000003390000000000000000' => array('id' => 'address_name', 'name' => 'name', 'view_vars' => array('action' => '', 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'text', '_address_name'), 'cache_key' => '_address_name_text', 'compound' => false, 'data' => 'Adresse du bureau', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[name]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address_name', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => 'name', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address_name', 'valid' => true, 'value' => 'Adresse du bureau'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('attr' => array('maxlength' => 255), 'required' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array('maxlength' => 255), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => null, 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => false, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'sanitize_html' => false, 'sanitizer' => null, 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => 'Adresse du bureau'), 'submitted_data' => array(), 'children' => array()), '00000000000003460000000000000000' => array('id' => '_token', 'name' => '_token', 'view_vars' => array('action' => '', 'attr' => array(), 'attr_translation_parameters' => array(), 'block_prefixes' => array('form', 'hidden', 'csrf_token', '_address__token'), 'cache_key' => '_address__token_hidden', 'compound' => false, 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'disabled' => false, 'errors' => object(FormErrorIterator), 'form' => object(FormView), 'full_name' => 'address[_token]', 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'id' => 'address__token', 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'method' => 'POST', 'multipart' => false, 'name' => '_token', 'priority' => 0, 'required' => false, 'row_attr' => array(), 'submitted' => false, 'translation_domain' => null, 'unique_block_prefix' => '_address__token', 'valid' => true, 'value' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'type_class' => object(ClassStub), 'synchronized' => true, 'passed_options' => array('block_prefix' => 'csrf_token', 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'mapped' => false), 'resolved_options' => array('action' => '', 'allow_extra_fields' => false, 'allow_file_upload' => false, 'attr' => array(), 'attr_translation_parameters' => array(), 'auto_initialize' => true, 'block_name' => null, 'block_prefix' => 'csrf_token', 'by_reference' => true, 'compound' => false, 'constraints' => array(), 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_protection' => true, 'csrf_token_id' => null, 'csrf_token_manager' => object(CsrfTokenManager), 'data' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ', 'data_class' => null, 'disabled' => false, 'empty_data' => object(Closure), 'error_bubbling' => true, 'error_mapping' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'form_attr' => false, 'getter' => null, 'help' => null, 'help_attr' => array(), 'help_html' => false, 'help_translation_parameters' => array(), 'inherit_data' => false, 'invalid_message' => 'The hidden field is invalid.', 'invalid_message_parameters' => array(), 'is_empty_callback' => null, 'label' => null, 'label_attr' => array(), 'label_format' => null, 'label_html' => false, 'label_translation_parameters' => array(), 'mapped' => false, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'priority' => 0, 'property_path' => null, 'required' => false, 'row_attr' => array(), 'setter' => null, 'translation_domain' => null, 'trim' => true, 'upload_max_size_message' => object(Closure), 'validation_groups' => null), 'default_data' => array('norm' => '121ffd16ab6fff314fde10f257b3.e0YCWa4-n-WSu0nPSerxV1LQVfrapBRbDHyYA73z90M.KSVKN_ZOqZPZ-QCYCrKTFhSdI6WOkUI0SgrtNvaskAczL1sv52H2pPqOcQ'), 'submitted_data' => array(), 'children' => array())), 'nb_errors' => 0))
     (C:\wamp64\www\demo-sf\vendor\symfony\form\Extension\DataCollector\FormDataCollector.php:214)
  at Symfony\Component\Form\Extension\DataCollector\FormDataCollector->__sleep()
  at serialize(array('token' => '1555c1', 'parent' => null, 'children' => array(), 'data' => array('request' => object(RequestDataCollector), 'time' => object(TimeDataCollector), 'memory' => object(MemoryDataCollector), 'validator' => object(ValidatorDataCollector), 'ajax' => object(AjaxDataCollector), 'form' => object(FormDataCollector), 'exception' => object(ExceptionDataCollector), 'logger' => object(LoggerDataCollector), 'events' => object(EventDataCollector), 'router' => object(RouterDataCollector), 'cache' => object(CacheDataCollector), 'translation' => object(TranslationDataCollector), 'security' => object(SecurityDataCollector), 'twig' => object(TwigDataCollector), 'http_client' => object(HttpClientDataCollector), 'db' => object(DoctrineDataCollector), 'dump' => object(DumpDataCollector), 'mailer' => object(MessageDataCollector), 'config' => object(ConfigDataCollector)), 'ip' => '127.0.0.1', 'method' => 'GET', 'url' => 'https://127.0.0.1:8000/fr/address/edit', 'time' => 1674656193, 'status_code' => 200))
     (C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\Profiler\FileProfilerStorage.php:147)
  at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->write(object(Profile))
     (C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\Profiler\Profiler.php:100)
  at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile(object(Profile))
     (C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\EventListener\ProfilerListener.php:135)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate(object(TerminateEvent), 'kernel.terminate', object(TraceableEventDispatcher))
     (C:\wamp64\www\demo-sf\vendor\symfony\event-dispatcher\Debug\WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(TerminateEvent), 'kernel.terminate', object(TraceableEventDispatcher))
     (C:\wamp64\www\demo-sf\vendor\symfony\event-dispatcher\EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener)), 'kernel.terminate', object(TerminateEvent))
     (C:\wamp64\www\demo-sf\vendor\symfony\event-dispatcher\EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (C:\wamp64\www\demo-sf\vendor\symfony\event-dispatcher\Debug\TraceableEventDispatcher.php:127)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\HttpKernel.php:97)
  at Symfony\Component\HttpKernel\HttpKernel->terminate(object(Request), object(Response))
     (C:\wamp64\www\demo-sf\vendor\symfony\http-kernel\Kernel.php:147)
  at Symfony\Component\HttpKernel\Kernel->terminate(object(Request), object(Response))
     (C:\wamp64\www\demo-sf\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php:39)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (C:\wamp64\www\demo-sf\vendor\autoload_runtime.php:29)
  at require_once('C:\\wamp64\\www\\demo-sf\\vendor\\autoload_runtime.php')
     (C:\wamp64\www\demo-sf\public\index.php:5)       

@nicolas-grekas
Copy link
Member

Login with user : jane_admin

what's the password?

also, which exact version of PHP do you use?

@nicolas-grekas
Copy link
Member

OK, I figured out the password 😅

I don't reproduce. I think you're affected by php/php-src#8655

Please upgrade to the latest PHP 8.1

@seb-jean
Copy link
Contributor Author

I have PHP 8.1.0

@nicolas-grekas
Copy link
Member

This settles it. Upgrade to 8.1.8 minimum.

@LauraMarciano07
Copy link

@seb-jean did you upgrade to another php version?
That resolved the isssue?

@seb-jean
Copy link
Contributor Author

seb-jean commented Mar 8, 2023

@seb-jean did you upgrade to another php version? That resolved the isssue?

Yes, now I have PHP 8.1.13

@LauraMarciano07
Copy link

LauraMarciano07 commented Mar 8, 2023

@seb-jean I have PHP 8.1.2 but I am facing the same issue on Dev...
Did you change anything else maybe?

@seb-jean
Copy link
Contributor Author

seb-jean commented Mar 8, 2023

You have to change your version of PHP as @nicolas-grekas said.

@LauraMarciano07
Copy link

Ok thx

@pfpro
Copy link

pfpro commented Mar 23, 2023

How did that turn out, if I may ask?

@nicolas-grekas
Copy link
Member

Please provide a reproducer that works on the latest version of PHP if you still experience the issue.

@Hanhan1989
Copy link

It seems that only this error occurs in dev mode.

@DavidPetrasek
Copy link

DavidPetrasek commented Jun 16, 2023

It seems that only this error occurs in dev mode.

I confirm it happened to me only in dev mode and it was solved by upgrading to PHP Version 8.1.20. On production server there is only PHP Version 8.1.2 and no problems there.

@olberger
Copy link

Unfortunately it seems that Ubuntu 22.04 ships PHP 8.1 (unless we missed upgrades), which tend to exhibit this error... and the upgrade path may not be obvious to most newbees :-/

@stof
Copy link
Member

stof commented Nov 15, 2023

@olberger 8.1 is not precise enough. As explained in the discussion above, the latest version of PHP 8.1 does not suffer from the bug. Only the first few releases in the 8.1.x series had the bug.

@olberger
Copy link

AFAIU, Ubuntu 22.04 ships only 8.1.2 + security fixes... of course one may use Ondrej's PPA, but too bad if one uses only stock Ubuntu LTS, ATM.

@stof
Copy link
Member

stof commented Nov 15, 2023

Well, if you want to use a version of PHP missing 2 years of bugfixes, feel free to find a way to reimplement VarDumper without being impacted by that PHP bug (but without loosing any of the features of the component). But for that bug, it will probably be very hard (anyway, anything that has reimplement VarDumper in its title will be hard, even without additional constraints).
However, I don't see any benefit for the Symfony core team spending that time instead of doing more useful work on Symfony.

chihiro-adachi added a commit to chihiro-adachi/ec-cube that referenced this issue Dec 19, 2023
@ebuildy
Copy link
Contributor

ebuildy commented Feb 25, 2024

Actually this happen when we assign property a variable reference, very easy to reproduce:

class Clazz {
    public ?Clazz $parent = null;
}

$parent = new Clazz();
$s = new Clazz();

$s->parent = &$parent;

$dataCollector = new MyDataCollector();

$dataCollector->cloneVarPublic($s); // call cloneVar

gives

Fatal error: Uncaught TypeError: Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property Ebuildy\Tests\Clazz::$parent of type ?Ebuildy\Tests\Clazz in /Users/tdecaux/dev/ebuildy/tests/vendor/symfony/http-kernel/DataCollector/DataCollector.php:98
Stack trace:
#0 vendor/symfony/var-dumper/Cloner/AbstractCloner.php(364): Symfony\Component\HttpKernel\DataCollector\DataCollector->Symfony\Component\HttpKernel\DataCollector\{closure}(Object(Ebuildy\Tests\Clazz), Array, Object(Symfony\Component\VarDumper\Cloner\Stub), false, 0)
#1 vendor/symfony/var-dumper/Cloner/VarCloner.php(196): Symfony\Component\VarDumper\Cloner\AbstractCloner->castObject(Object(Symfony\Component\VarDumper\Cloner\Stub), false)
#2 vendor/symfony/var-dumper/Cloner/AbstractCloner.php(297): Symfony\Component\VarDumper\Cloner\VarCloner->doClone(Object(Ebuildy\Tests\Clazz))
#3 vendor/symfony/http-kernel/DataCollector/DataCollector.php(85): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar(Object(Ebuildy\Tests\Clazz))
#4 src/MyDataCollector.php(20): Symfony\Component\HttpKernel\DataCollector\DataCollector->cloneVar(Object(Ebuildy\Tests\Clazz))
#5 src/index.php(15): Ebuildy\Tests\MyDataCollector->testClone(Object(Ebuildy\Tests\Clazz))
#6 {main}
  thrown in vendor/symfony/http-kernel/DataCollector/DataCollector.php on line 98

(tested with php 8.2.16)

@nicolas-grekas
Copy link
Member

Looks like the following patch would fix that issue. Could you please submit it as a bugfix on branch 5.4 with a test case derived from your reproducer?

--- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
+++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
@@ -61,8 +61,16 @@ abstract class DataCollector implements DataCollectorInterface
             '*' => function ($v, array $a, Stub $s, $isNested) {
                 if (!$v instanceof Stub) {
                     foreach ($a as $k => $v) {
-                        if (\is_object($v) && !$v instanceof \DateTimeInterface && !$v instanceof Stub) {
+                        if (!\is_object($v) || $v instanceof \DateTimeInterface || $v instanceof Stub) {
+                            continue;
+                        }
+
+                        try {
+                            $a[$k] = new CutStub($v);
+                        } catch (\TypeError) {
+                            $a[$k] = &$v;
                             $a[$k] = new CutStub($v);
+                            unset($v);
                         }
                     }
                 }

@ebuildy
Copy link
Contributor

ebuildy commented Feb 26, 2024

Thanks you, this patch fix my 1st issue, another buggy use case, is on Prestashop, with Smarty. Basically, they (Smarty) use a property assigned to a reference in destruct method:

class Clazz {
    public $parent = null;

    public function __destruct()
    {
        if ($this->parent !== null && !($this->parent instanceof Clazz)) {
            $c = get_class($this->parent);
            throw new Error("parent not instanceof Clazz but {$c}");
        }
    }
}

$parent = new Clazz();
$s = new Clazz();

$s->parent = &$parent;

$dataCollector = new MyDataCollector();

$dataCollector->testClone($s);

Gives:

Fatal error: Uncaught Error: parent not instanceof Clazz but Symfony\Component\VarDumper\Caster\CutStub in tests/src/Clazz.php:14
Stack trace:
#0 [internal function]: Ebuildy\Tests\Clazz->__destruct()
#1 {main}
  thrown in tests/src/Clazz.php on line 14

@nicolas-grekas
Copy link
Member

Please send this reproducer as a second test case on your upcoming PR and I'll have a look?

@ebuildy
Copy link
Contributor

ebuildy commented Feb 26, 2024

Hello Nicolas, here the PR #54072 thanks you so much!

nicolas-grekas added a commit that referenced this issue Apr 12, 2024
… property (ebuildy)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[HttpKernel] Fix datacollector caster for reference object property

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #49091
| License       | MIT

As discussed on #49091:

- fix story "when assigning a variable reference to a public object property"
- add test for story "use object property in destruct method" (relate to PrestaShop/PrestaShop#35466 )

Unit tests FAIL "Error: KO src/Symfony/Component/HttpKernel" --> normal

Commits
-------

457a3de [HttpKernel] Fix datacollector caster for reference object property
symfony-splitter pushed a commit to symfony/http-kernel that referenced this issue Apr 12, 2024
… property (ebuildy)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[HttpKernel] Fix datacollector caster for reference object property

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #49091
| License       | MIT

As discussed on symfony/symfony#49091:

- fix story "when assigning a variable reference to a public object property"
- add test for story "use object property in destruct method" (relate to PrestaShop/PrestaShop#35466 )

Unit tests FAIL "Error: KO src/Symfony/Component/HttpKernel" --> normal

Commits
-------

457a3ded28 [HttpKernel] Fix datacollector caster for reference object property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests