Skip to content

Commit 2e608f7

Browse files
bug symfony#24285 [DI] Dont use JSON_BIGINT_AS_STRING (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [DI] Dont use JSON_BIGINT_AS_STRING | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | ye | Fixed tickets | - | License | MIT | Doc PR | - Because it's incompatible with stringy keys, for unknown reason, see https://3v4l.org/IHSqv Commits ------- 830f286 [DI] Dont use JSON_BIGINT_AS_STRING
2 parents 701d41c + 830f286 commit 2e608f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/EnvVarProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function getEnv($prefix, $name, \Closure $getEnv)
119119
}
120120

121121
if ('json' === $prefix) {
122-
$env = json_decode($env, true, JSON_BIGINT_AS_STRING);
122+
$env = json_decode($env, true);
123123

124124
if (JSON_ERROR_NONE !== json_last_error()) {
125125
throw new RuntimeException(sprintf('Invalid JSON in env var "%s": '.json_last_error_msg(), $name));

0 commit comments

Comments
 (0)