Skip to content

Commit f0be749

Browse files
committed
minor symfony#57974 [Serializer] Remove useless calls to func_get_arg() (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [Serializer] Remove useless calls to `func_get_arg()` | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT It's seems this has been forgotten during an upmerge? Commits ------- caf1d87 [Serializer] Remove useless calls to `func_get_arg()`
2 parents 0b201a1 + caf1d87 commit f0be749

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Symfony/Component/Serializer/NameConverter/MetadataAwareNameConverter.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ public function __construct(
4343

4444
public function normalize(string $propertyName, ?string $class = null, ?string $format = null, array $context = []): string
4545
{
46-
$class = 1 < \func_num_args() ? func_get_arg(1) : null;
47-
$format = 2 < \func_num_args() ? func_get_arg(2) : null;
48-
$context = 3 < \func_num_args() ? func_get_arg(3) : [];
49-
5046
if (null === $class) {
5147
return $this->normalizeFallback($propertyName, $class, $format, $context);
5248
}
@@ -60,10 +56,6 @@ public function normalize(string $propertyName, ?string $class = null, ?string $
6056

6157
public function denormalize(string $propertyName, ?string $class = null, ?string $format = null, array $context = []): string
6258
{
63-
$class = 1 < \func_num_args() ? func_get_arg(1) : null;
64-
$format = 2 < \func_num_args() ? func_get_arg(2) : null;
65-
$context = 3 < \func_num_args() ? func_get_arg(3) : [];
66-
6759
if (null === $class) {
6860
return $this->denormalizeFallback($propertyName, $class, $format, $context);
6961
}

0 commit comments

Comments
 (0)