Skip to content

Commit a2f4b3d

Browse files
committed
remove useless serialize union selector
1 parent 6ee462c commit a2f4b3d

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/Symfony/Component/SerDes/Context/SerializeContext.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ public function withJsonEncodeFlags(int $flags): self
4949
return new self(['json_encode_flags' => $flags] + $this->options);
5050
}
5151

52-
/**
53-
* @param array<string, string> $unionSelector
54-
*/
55-
public function withUnionSelector(array $unionSelector): self
56-
{
57-
return new self(['union_selector' => $unionSelector] + $this->options);
58-
}
59-
6052
/**
6153
* @param ObjectHookInterface|callable(string, string, array<string, mixed>): array{type: string, accessor: string, context: array<string, mixed>} $hook
6254
* @param class-string|null $className

src/Symfony/Component/SerDes/Tests/Context/SerializeContextTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function testWithers()
2424
->withForceGenerateTemplate()
2525
->withType('TYPE')
2626
->withJsonEncodeFlags(123)
27-
->withUnionSelector(['int|string' => 'int'])
2827
->withObjectHook($hook)
2928
->withObjectHook($hook, 'className')
3029
->withPropertyHook($hook)
@@ -40,7 +39,6 @@ public function testWithers()
4039
'className::$propertyName' => $hook,
4140
],
4241
],
43-
'union_selector' => ['int|string' => 'int'],
4442
'json_encode_flags' => 123,
4543
'type' => 'TYPE',
4644
'force_generate_template' => true,

0 commit comments

Comments
 (0)