Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional extra arguments for custom error messages #142

Merged
merged 1 commit into from
Nov 8, 2015
Merged

Optional extra arguments for custom error messages #142

merged 1 commit into from
Nov 8, 2015

Conversation

onlinesid
Copy link
Contributor

And unknown format no longer generate error

{
$this->errors[] = array(
$a = array(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use such a meaningless names

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it's better to use meaningless very short names for variables that are being used temporarily and locally within such a small method, but fine I'll change the name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you never know if this method will be larger in the future

@Maks3w
Copy link
Contributor

Maks3w commented Jun 11, 2015

Needs rebase

@@ -7,3 +7,5 @@ coverage
.settings
composer.lock
docs-api
/.idea
/composer.phar
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move these to you global ignore

@bighappyface
Copy link
Collaborator

@onlinesid thanks for the rebase. Would you please squash this down to a single commit?

…or custom error messages

* Added more information to the error message of StringConstraint
* Added more information to the Constraint addError
* Unknown format does not generate error
* Updated the test so that unknown format does not throw an error
* Make messages to start with a capital letter consistently
@onlinesid
Copy link
Contributor Author

I've squashed into a single commit now

@bighappyface
Copy link
Collaborator

@Maks3w what are your thoughts on the the version number to iterate to when this is merged?

bighappyface added a commit that referenced this pull request Nov 8, 2015
Optional extra arguments for custom error messages
@bighappyface bighappyface merged commit 043bc7c into jsonrainbow:master Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants