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

ConfigLoader loads unquoted numbers as objects #148

Closed
alexsegura opened this issue Nov 25, 2017 · 1 comment
Closed

ConfigLoader loads unquoted numbers as objects #148

alexsegura opened this issue Nov 25, 2017 · 1 comment

Comments

@alexsegura
Copy link
Member

When using ConfigLoader to load Symfony configuration in JavaScript, unquoted integers get parsed as objects.

For example, when there is the following in parameters.yml:

app.dispatch_port: 8009
app.tracking_port: 8010
app.order_tracking_port: 8011
app.restaurant_panel_port: 8013

The resulting configuration is like this:

parameters: {
  "app.dispatch_port": {},
  "app.tracking_port": {},
  "app.order_tracking_port": {},
  "app.restaurant_panel_port": {},
}

Right now, it works because we have quoted numbers in parameters.yml.dist

See also #20

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

1 participant