Skip to content

Commit caf1d87

Browse files
[Serializer] Remove useless calls to func_get_arg()
1 parent 0b201a1 commit caf1d87

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)