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

fix README.md examples #2

Merged
merged 3 commits into from
Jun 24, 2016
Merged

fix README.md examples #2

merged 3 commits into from
Jun 24, 2016

Conversation

iHmD
Copy link
Contributor

@iHmD iHmD commented Jun 24, 2016

No description provided.

@@ -105,7 +105,7 @@ $app->get('/foo', function ($req, $res, $args) {
//Here you expect 'username' and 'age' parameters
if($this->validation->hasErrors()){
//There are errors, read them
$errors = $this->getErrors();
$errors = $this->apiValidation->getErrors();
Copy link
Owner

Choose a reason for hiding this comment

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

Here it's $this->validation and not $this->apiValidation

@DavidePastore
Copy link
Owner

Hi @iHmD , thanks for this PR! I've added a comment on it. Can you also fix the same error in line 129?

@iHmD
Copy link
Contributor Author

iHmD commented Jun 24, 2016

@DavidePastore I pushed a new commit with new fixes and you are welcome :)
PS : This was my first PR ever and Iam in a mess 😊

@@ -126,7 +126,7 @@ $app->post('/bar', function ($req, $res, $args) {
//Here you expect 'username' and 'age' parameters
if($this->validation->hasErrors()){
//There are errors, read them
$errors = $this->getErrors();
$errors = $this->->validation->getErrors();
Copy link
Owner

Choose a reason for hiding this comment

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

Be careful here: there is an additional -> 🍨

@iHmD
Copy link
Contributor Author

iHmD commented Jun 24, 2016

@DavidePastore hope it is OK this time!

@DavidePastore DavidePastore merged commit e7fa23c into DavidePastore:master Jun 24, 2016
@DavidePastore
Copy link
Owner

Yes @iHmD , it's OK! Thanks for this PR and congratulations for your first one! 👍

@iHmD
Copy link
Contributor Author

iHmD commented Jun 24, 2016

@DavidePastore thank you very much 😄

@iHmD iHmD deleted the iHmD-examples-fix branch June 24, 2016 13:57
@DavidePastore DavidePastore added this to the v0.1.1 milestone Aug 14, 2016
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.

2 participants