Skip to content

Commit 67db967

Browse files
committed
fabbot coding standard
1 parent a77ee0c commit 67db967

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,10 +1272,7 @@ protected function isAllowedAttribute($classOrObject, string $attribute, ?string
12721272

12731273
public function testTemplateTypeWhenAnObjectIsPassedToDenormalize()
12741274
{
1275-
$normalizer = new class (
1276-
classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()),
1277-
propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])
1278-
) extends AbstractObjectNormalizerDummy {
1275+
$normalizer = new class(classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()), propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])) extends AbstractObjectNormalizerDummy {
12791276
protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
12801277
{
12811278
return true;
@@ -1298,10 +1295,7 @@ public function testDenormalizeTemplateType()
12981295
$this->markTestSkipped('The PropertyInfo component before Symfony 7.1 does not support template types.');
12991296
}
13001297

1301-
$normalizer = new class (
1302-
classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()),
1303-
propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])
1304-
) extends AbstractObjectNormalizerDummy {
1298+
$normalizer = new class(classMetadataFactory: new ClassMetadataFactory(new AttributeLoader()), propertyTypeExtractor: new PropertyInfoExtractor(typeExtractors: [new PhpStanExtractor(), new ReflectionExtractor()])) extends AbstractObjectNormalizerDummy {
13051299
protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
13061300
{
13071301
return true;
@@ -1606,7 +1600,7 @@ class TruePropertyDummy
16061600

16071601
class BoolPropertyDummy
16081602
{
1609-
/** @var null|bool */
1603+
/** @var bool|null */
16101604
public $foo;
16111605
}
16121606

0 commit comments

Comments
 (0)