Skip to content
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

Error ArrayStructureDumper #562

Open
MisterGrouik opened this issue Sep 9, 2021 · 0 comments
Open

Error ArrayStructureDumper #562

MisterGrouik opened this issue Sep 9, 2021 · 0 comments

Comments

@MisterGrouik
Copy link

| Bundle version "^1.6" |
| Symfony version 4 |
| PHP version 7.2 |

I have this field in a form

$builder->add('moisdepart', ChoiceType::class, [
              'choices' => [
                '01' => '01',
                '02' => '02',
                '03' => '03',
                '04' => '04',
                '05' => '05',
                '06' => '06',
                '07' => '07',
                '08' => '08',
                '09' => '09',
                '10' => '10',
                '11' => '11',
                '12' => '12',
              ],
              'label' => 'Mois de départ',
              'required' => false,
            ]);

When I use the command
translation:extract fr --config=app --keep --output-format=yml

I get this message

In ArrayStructureDumper.php line 53:
                                                             
  explode() expects parameter 2 to be string, integer given  

A dump on $id shows that I get the error once it gets to the choice "10" and after, because it is considered as an integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant