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 4989076

Browse filesBrowse files
committed
fixup! fixup! fixup! [Serializer] Allow (de)normalization of empty objects in PropertyNormalizer and GetSetMethodNormalizer
1 parent 765758b commit 4989076
Copy full SHA for 4989076

File tree

2 files changed

+4
-6
lines changed
Filter options

2 files changed

+4
-6
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php
+2-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
2727
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
2828
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
29-
use Symfony\Component\Serializer\Normalizer\PropertyNormalizer;
3029
use Symfony\Component\Serializer\Serializer;
3130
use Symfony\Component\Serializer\SerializerInterface;
3231
use Symfony\Component\Serializer\Tests\Fixtures\Annotations\GroupDummy;
@@ -381,10 +380,10 @@ public function testDenormalizeObjectWithoutAnyProperties()
381380
$normalizer = $this->getNormalizerAllowingObjectsWithoutGetters();
382381
$obj = new EmptyObjectDummy();
383382

384-
$this->assertTrue($normalizer->supportsDenormalization($obj, get_class($obj)));
383+
$this->assertTrue($normalizer->supportsDenormalization($obj, \get_class($obj)));
385384
$this->assertEquals(
386385
$obj,
387-
$normalizer->denormalize([], get_class($obj)),
386+
$normalizer->denormalize([], \get_class($obj)),
388387
);
389388
}
390389

@@ -756,5 +755,4 @@ public function hasFoo()
756755

757756
class EmptyObjectDummy
758757
{
759-
760758
}

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php
+2-2
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ public function testDenormalizeObjectWithoutAnyProperties()
269269
$normalizer = $this->getNormalizerAllowingObjectsWithoutProperties();
270270
$obj = new StaticPropertyDummy();
271271

272-
$this->assertTrue($normalizer->supportsDenormalization($obj, get_class($obj)));
272+
$this->assertTrue($normalizer->supportsDenormalization($obj, \get_class($obj)));
273273
$this->assertEquals(
274274
$obj,
275-
$normalizer->denormalize([], get_class($obj)),
275+
$normalizer->denormalize([], \get_class($obj)),
276276
);
277277
}
278278

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.