Skip to content

Commit

Permalink
Use object property name as the key
Browse files Browse the repository at this point in the history
  • Loading branch information
awurth committed Sep 13, 2017
1 parent 7ad48a6 commit 6e746a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function object($object, array $rules, $group = null, array $messages = [
}

foreach ($rules as $property => $options) {
$config = new Configuration($options, null, $group, $default);
$config = new Configuration($options, $property, $group, $default);

$value = $this->getPropertyValue($object, $property, $config->getDefault());

Expand Down

0 comments on commit 6e746a8

Please sign in to comment.