Skip to content

Commit

Permalink
Fix arguments accidentally swapped in jsonrainbow#364
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Mar 13, 2017
1 parent 867f8a5 commit ef7f28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JsonSchema/Constraints/TypeConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public function check(&$value = null, $schema = null, JsonPointer $path = null,
$wording[] = self::$wording[$type];
}
$this->addError(ConstraintError::TYPE(), $path, array(
'expected' => gettype($value),
'found' => $this->implodeWith($wording, ', ', 'or')
'expected' => $this->implodeWith($wording, ', ', 'or'),
'found' => gettype($value)
));
}
}
Expand Down

0 comments on commit ef7f28c

Please sign in to comment.