Skip to content

Commit 741f21c

Browse files
minor #62158 [JsonStreamer] Fix #61880 upmerge (mtarld)
This PR was merged into the 7.4 branch. Discussion ---------- [JsonStreamer] Fix #61880 upmerge | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | F | License | MIT Fix #61880 that triggers deprecation in 7.4 Commits ------- a3bd9be [JsonStreamer] Fix #61880 upmerge
2 parents fc012a0 + a3bd9be commit 741f21c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Symfony/Component/JsonStreamer/Mapping/PropertyMetadata.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,11 @@ public function __construct(
4040
}
4141

4242
/**
43-
* @param list<string|\Closure> $nativeToStreamValueTransformers
44-
* @param list<string|\Closure> $streamToNativeValueTransformers
43+
* @param list<string|\Closure> $valueTransformers
4544
*/
46-
public static function createSynthetic(
47-
Type $type,
48-
array $nativeToStreamValueTransformers = [],
49-
array $streamToNativeValueTransformers = [],
50-
): self {
51-
return new self(null, $type, $nativeToStreamValueTransformers, $streamToNativeValueTransformers);
45+
public static function createSynthetic(Type $type, array $valueTransformers = []): self
46+
{
47+
return new self(null, $type, $valueTransformers);
5248
}
5349

5450
public function getName(): ?string

0 commit comments

Comments
 (0)