Skip to content

Commit 255d74c

Browse files
committed
minor #53657 [FrameworkBundle] Remove redundant name attribute from default_context (HypeMC)
This PR was merged into the 7.1 branch. Discussion ---------- [FrameworkBundle] Remove redundant `name` attribute from `default_context` | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT This attribute `name` doesn't exist. It's not defined in the XML schema, and it doesn't do anything. `default_context` is just a simple array that's passed to the serializer. Commits ------- 485b7569d3 [FrameworkBundle] Remove redundant `name` attribute from `default_context`
2 parents 920453e + a6b8854 commit 255d74c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,6 @@ private function addSerializerSection(ArrayNodeDefinition $rootNode, callable $e
11161116
->end()
11171117
->arrayNode('default_context')
11181118
->normalizeKeys(false)
1119-
->useAttributeAsKey('name')
11201119
->beforeNormalization()
11211120
->ifTrue(fn () => $this->debug && class_exists(JsonParser::class))
11221121
->then(fn (array $v) => $v + [JsonDecode::DETAILED_ERROR_MESSAGES => true])

0 commit comments

Comments
 (0)