File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Validator/Mapping/Loader Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
64
64
}
65
65
}
66
66
67
- if (isset ($ yaml ['properties ' ]) && is_array ($ yaml ['constraints ' ])) {
67
+ if (isset ($ yaml ['properties ' ]) && is_array ($ yaml ['properties ' ])) {
68
68
foreach ($ yaml ['properties ' ] as $ property => $ constraints ) {
69
69
if (null !== $ constraints ) {
70
70
foreach ($ this ->parseNodes ($ constraints ) as $ constraint ) {
@@ -74,7 +74,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
74
74
}
75
75
}
76
76
77
- if (isset ($ yaml ['getters ' ])) {
77
+ if (isset ($ yaml ['getters ' ]) && is_array ( $ yaml [ ' getters ' ]) ) {
78
78
foreach ($ yaml ['getters ' ] as $ getter => $ constraints ) {
79
79
if (null !== $ constraints ) {
80
80
foreach ($ this ->parseNodes ($ constraints ) as $ constraint ) {
You can’t perform that action at this time.
0 commit comments