Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2e608f7

Browse filesBrowse files
bug #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
Copy full SHA for 2e608f7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/DependencyInjection/EnvVarProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/EnvVarProcessor.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.