Skip to content

Commit

Permalink
Fixed $notExistingKeys value name
Browse files Browse the repository at this point in the history
  • Loading branch information
pskt committed May 29, 2014
1 parent d83a6fd commit ebfc0e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ private function iterateMatch(array $value, array $pattern)
}

if(is_array($pattern)) {
$unexistingKeys = array_diff_key($pattern, $value);
$notExistingKeys = array_diff_key($pattern, $value);

if (count($unexistingKeys) > 0) {
$keyNames = array_keys($unexistingKeys);
if (count($notExistingKeys) > 0) {
$keyNames = array_keys($notExistingKeys);
$this->error = sprintf('There is no element under path [%s] in value array.', $keyNames[0]);
return false;
}
Expand Down

0 comments on commit ebfc0e4

Please sign in to comment.