Permalink
Browse files

bug #3840 Update dialoghelper.rst (jdecoster)

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
  • Loading branch information...
weaverryan committed May 12, 2014
2 parents 979533a + 0575b0a commit 9a654126306b113b329b6965a700632c477a5585
Showing with 3 additions and 1 deletion.
  1. +3 −1 components/console/helpers/dialoghelper.rst
@@ -156,9 +156,11 @@ You can also ask and validate a hidden response::
$dialog = $this->getHelperSet()->get('dialog');
$validator = function ($value) {
if (trim($value) == '') {
if ('' === trim($value)) {
throw new \Exception('The password can not be empty');
}
return $value;
};
$password = $dialog->askHiddenResponseAndValidate(

0 comments on commit 9a65412

Please sign in to comment.