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 69121ef

Browse filesBrowse files
Merge branch '8.0' into 8.1
* 8.0: Fix tests
2 parents 706f9b2 + d849aad commit 69121ef
Copy full SHA for 69121ef

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
@@ -64,6 +64,8 @@
6464
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithObjectOrNull;
6565
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithStringObject;
6666
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectDummyWithContextAttribute;
67+
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectInner;
68+
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectOuter;
6769
use Symfony\Component\TypeInfo\Type;
6870

6971
class AbstractObjectNormalizerTest extends TestCase
@@ -1011,6 +1013,10 @@ public function getSupportedTypes(?string $format): array
10111013

10121014
public function testDenormalizeIterableConstructorParameterDenormalizesItems()
10131015
{
1016+
if (!method_exists(PropertyInfoExtractor::class, 'getType')) {
1017+
$this->markTestSkipped('The PropertyInfo component before Symfony 7.1 does not keep the collection value type for iterable constructor parameters.');
1018+
}
1019+
10141020
$serializer = new Serializer([
10151021
new ArrayDenormalizer(),
10161022
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.