-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
@@ -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(); |
There was a problem hiding this comment.
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 I pushed a new commit with new fixes and you are welcome :) |
@@ -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(); |
There was a problem hiding this comment.
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 ->
🍨
@DavidePastore hope it is OK this time! |
Yes @iHmD , it's OK! Thanks for this PR and congratulations for your first one! 👍 |
@DavidePastore thank you very much 😄 |
No description provided.