[DI] Dont use JSON_BIGINT_AS_STRING

This commit is contained in:
Nicolas Grekas 2017-09-22 11:57:45 +01:00
parent 701d41cc33
commit 830f286464

View File

@ -119,7 +119,7 @@ class EnvVarProcessor implements EnvVarProcessorInterface
}
if ('json' === $prefix) {
$env = json_decode($env, true, JSON_BIGINT_AS_STRING);
$env = json_decode($env, true);
if (JSON_ERROR_NONE !== json_last_error()) {
throw new RuntimeException(sprintf('Invalid JSON in env var "%s": '.json_last_error_msg(), $name));