Skip to content

Commit f004cea

Browse files
committed
Revert to array_key_exists instead of isset; #632
1 parent 64686ea commit f004cea

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)