Skip to content

Update dialoghelper.rst #3840

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

Closed
wants to merge 2 commits into from
Closed

Update dialoghelper.rst #3840

wants to merge 2 commits into from

Conversation

jdecoster
Copy link
Contributor

At the "Validating a Hidden Response" the example validation didn't respond anything so the $password var was NULL

At the "Validating a Hidden Response" the example validation didn't respond anything so the $password var was NULL
@jdecoster
Copy link
Contributor Author

also applicable in the 2.3 branch

@@ -159,6 +159,7 @@ You can also ask and validate a hidden response::
if (trim($value) == '') {
throw new \Exception('The password can not be empty');
}
return $value;
Copy link
Member

Choose a reason for hiding this comment

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

there should be a new line before the return statement

@jdecoster
Copy link
Contributor Author

@wouterj : maybe add a newline before line 120 also ? to stay in rule ?

@xabbuh
Copy link
Member

xabbuh commented May 8, 2014

@wouterj : maybe add a newline before line 120 also ? to stay in rule ?

Indeed, I agree.

@weaverryan
Copy link
Member

Awesome fix! I've merged this now so we can get it in, but I also agree with the other line break. It's really tiny, so I'll make that change right now :). Thanks!

weaverryan added a commit that referenced this pull request May 12, 2014
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3840).

Discussion
----------

Update dialoghelper.rst

At the "Validating a Hidden Response" the example validation didn't respond anything so the $password var was NULL

Commits
-------

c1812a9 Update dialoghelper.rst
036d276 Update dialoghelper.rst
@weaverryan weaverryan closed this May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants