Skip to content

Commit ff125eb

Browse files
committed
Improve unique value constraint handling
1 parent 25745b3 commit ff125eb

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

composer.lock

Lines changed: 27 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ListConstraintDirective.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ private static function recursiveValidate(array $rawValue, \stdClass $options) :
126126
if (\array_key_exists($innerValue, $differentValues)) {
127127
throw new UniqueConstraintNotSatisfied();
128128
}
129+
130+
$differentValues[$innerValue] = true;
129131
}
130132
}
131133

0 commit comments

Comments
 (0)