File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
src/Symfony/Component/Serializer Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
7272 }
7373
7474 if (isset ($ attribute ['ignore ' ])) {
75- $ attributeMetadata ->setIgnore (( bool ) $ attribute ['ignore ' ]);
75+ $ attributeMetadata ->setIgnore (XmlUtils:: phpize ( $ attribute ['ignore ' ]) );
7676 }
7777
7878 foreach ($ att
D64D
ribute ->context as $ node ) {
Original file line number Diff line number Diff line change 3737 <class name =" Symfony\Component\Serializer\Tests\Fixtures\Annotations\IgnoreDummy" >
3838 <attribute name =" ignored1" ignore =" true" />
3939 <attribute name =" ignored2" ignore =" true" />
40+ <attribute name =" notIgnored" ignore =" false" />
4041 </class >
4142
4243 <class name =" Symfony\Component\Serializer\Tests\Fixtures\Annotations\ContextDummyParent" >
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ public function testLoadIgnore()
107107 $ attributesMetadata = $ classMetadata ->getAttributesMetadata ();
108108 $ this ->assertTrue ($ attributesMetadata ['ignored1 ' ]->isIgnored ());
109109 $ this ->assertTrue ($ attributesMetadata ['ignored2 ' ]->isIgnored ());
110+ $ this ->assertFalse ($ attributesMetadata ['notIgnored ' ]->isIgnored ());
110111 }
111112
112113 protected function getLoaderForContextMapping (): LoaderInterface
You can’t perform that action at this time.
0 commit comments