Skip to content

Navigation Menu

Sign in
Appearance settings

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 d849aad

Browse filesBrowse files
Merge branch '7.4' into 8.0
* 7.4: Fix tests
2 parents 9976aac + f679961 commit d849aad
Copy full SHA for d849aad

1 file changed

+6Lines changed: 6 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithObjectOrNull;
6464
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithStringObject;
6565
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectDummyWithContextAttribute;
66+
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectInner;
67+
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectOuter;
6668
use Symfony\Component\TypeInfo\Type;
6769

6870
class AbstractObjectNormalizerTest extends TestCase
@@ -984,6 +986,10 @@ public function getSupportedTypes(?string $format): array
984986

985987
public function testDenormalizeIterableConstructorParameterDenormalizesItems()
986988
{
989+
if (!method_exists(PropertyInfoExtractor::class, 'getType')) {
990+
$this->markTestSkipped('The PropertyInfo component before Symfony 7.1 does not keep the collection value type for iterable constructor parameters.');
991+
}
992+
987993
$serializer = new Serializer([
988994
new ArrayDenormalizer(),
989995
new ObjectNormalizer(null, null, null, new PropertyInfoExtractor([], [new PhpDocExtractor(), new ReflectionExtractor()])),

0 commit comments

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