Skip to content

Commit 38a3438

Browse files
committed
fixup! Fix tests
1 parent 7244a15 commit 38a3438

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
parent::__construct($classMetadataFactory, $nameConverter, $propertyTypeExtractor, $classDiscriminatorResolver, $objectClassResolver, $defaultContext);
5656
$this->allowNormalizationOfObjectsWithoutAnyGetters = $allowNormalizationOfObjectsWithoutAnyGetters;
5757

58-
if (func_num_args() < 7) {
58+
if (\func_num_args() < 7) {
5959
trigger_deprecation('symfony/serializer', '6.1', '$allowNormalizationOfObjectsWithoutAnyGetters parameter of %s::__construct() should be explicitly provided since the default value will change to `true` in symfony/serializer >=7.0', __CLASS__);
6060
}
6161
}

src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\Serializer\Mapping\ClassDiscriminatorResolverInterface;
1717
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
1818
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
19-
use Symfony\Component\Uid\AbstractUid;
2019

2120
/**
2221
* Converts between objects and arrays by mapping properties.
@@ -51,7 +50,7 @@ public function __construct(
5150
parent::__construct($classMetadataFactory, $nameConverter, $propertyTypeExtractor, $classDiscriminatorResolver, $objectClassResolver, $defaultContext);
5251
$this->allowNormalizationOfObjectsWithoutAnyProperties = $allowNormalizationOfObjectsWithoutAnyProperties;
5352

54-
if (func_num_args() < 7) {
53+
if (\func_num_args() < 7) {
5554
trigger_deprecation('symfony/serializer', '6.1', '$allowNormalizationOfObjectsWithoutAnyProperties parameter of %s::__construct() should be explicitly provided since the default value will change to `true` in symfony/serializer >=7.0', __CLASS__);
5655
}
5756
}

src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ protected function getDenormalizerForGroups(): GetSetMethodNormalizer
284284
public function testGroupsNormalizeWithNameConverter()
285285
{
286286
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
287-
$this->normalizer = new GetSetMethodNormalizer($classMetadataFactory, new CamelCaseToSnakeCaseNameConverter(),null, null, null, [], true);
287+
$this->normalizer = new GetSetMethodNormalizer($classMetadataFactory, new CamelCaseToSnakeCaseNameConverter(), null, null, null, [], true);
288288
$this->normalizer->setSerializer($this->serializer);
289289

290290
$obj = new GroupDummy();

0 commit comments

Comments
 (0)