Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 67db967

Browse filesBrowse files
committed
fabbot coding standard
1 parent a77ee0c commit 67db967
Copy full SHA for 67db967

File tree

1 file changed

+3
-9
lines changed
Filter options

1 file changed

+3
-9
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php
+3-9
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.