Skip to content

Commit

Permalink
Fix docblock example.
Browse files Browse the repository at this point in the history
First arg of RulesChecker::isUnique() must be an array.
  • Loading branch information
ADmad committed Feb 1, 2015
1 parent efdcef5 commit 67a6988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/RulesChecker.php
Expand Up @@ -299,7 +299,7 @@ public function checkDelete(EntityInterface $entity, array $options = [])
* ### Example:
*
* ```
* $rules->add($rules->isUnique('email', 'The email should be unique'));
* $rules->add($rules->isUnique(['email'], 'The email should be unique'));
* ```
*
* @param array $fields The list of fields to check for uniqueness.
Expand Down

0 comments on commit 67a6988

Please sign in to comment.