Skip to content

Commit ebfc0e4

Browse files
committed
Fixed $notExistingKeys value name
1 parent d83a6fd commit ebfc0e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Coduo/PHPMatcher/Matcher/ArrayMatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ private function iterateMatch(array $value, array $pattern)
7878
}
7979

8080
if(is_array($pattern)) {
81-
$unexistingKeys = array_diff_key($pattern, $value);
81+
$notExistingKeys = array_diff_key($pattern, $value);
8282

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

0 commit comments

Comments
 (0)