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 f679961

Browse filesBrowse files
Fix tests
1 parent 39f1284 commit f679961
Copy full SHA for f679961

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
@@ -67,6 +67,8 @@
6767
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithObjectOrNull;
6868
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithStringObject;
6969
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectDummyWithContextAttribute;
70+
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectInner;
71+
use Symfony\Component\Serializer\Tests\Normalizer\Features\ObjectOuter;
7072
use Symfony\Component\TypeInfo\Type;
7173

7274
class AbstractObjectNormalizerTest extends TestCase
@@ -1033,6 +1035,10 @@ public function getSupportedTypes(?string $format): array
10331035

10341036
public function testDenormalizeIterableConstructorParameterDenormalizesItems()
10351037
{
1038+
if (!method_exists(PropertyInfoExtractor::class, 'getType')) {
1039+
$this->markTestSkipped('The PropertyInfo component before Symfony 7.1 does not keep the collection value type for iterable constructor parameters.');
1040+
}
1041+
10361042
$serializer = new Serializer([
10371043
new ArrayDenormalizer(),
10381044
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.