Skip to content

Commit 14ce2da

Browse files
authored
Merge pull request #633 from TomHAnderson/hotfix/unique-object
Revert to array_key_exists instead of isset
2 parents 64686ea + f004cea commit 14ce2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DoctrineModule/Validator/UniqueObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected function getExpectedIdentifiers($context = null)
144144

145145
$result = [];
146146
foreach ($this->getIdentifiers() as $identifierField) {
147-
if (! isset($context[$identifierField])) {
147+
if (! array_key_exists($identifierField, $context)) {
148148
throw new Exception\RuntimeException(\sprintf('Expected context to contain %s', $identifierField));
149149
}
150150

0 commit comments

Comments
 (0)