10000 Fix typo · marcw/symfony@8ceb569 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ceb569

Browse files
committed
Fix typo
1 parent 8702ea5 commit 8ceb569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
6464
}
6565
}
6666

67-
if (isset($yaml['properties']) && is_array($yaml['constraints'])) {
67+
if (isset($yaml['properties']) && is_array($yaml['properties'])) {
6868
foreach ($yaml['properties'] as $property => $constraints) {
6969
if (null !== $constraints) {
7070
foreach ($this->parseNodes($constraints) as $constraint) {
@@ -74,7 +74,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
7474
}
7575
}
7676

77-
if (isset($yaml['getters'])) {
77+
if (isset($yaml['getters']) && is_array($yaml['getters'])) {
7878
foreach ($yaml['getters'] as $getter => $constraints) {
7979
if (null !== $constraints) {
8080
foreach ($this->parseNodes($constraints) as $constraint) {

0 commit comments

Comments
 (0)
0