Skip to content

Commit 243a798

Browse files
jdecosterweaverryan
authored andcommitted
Update dialoghelper.rst
At the "Validating a Hidden Response" the example validation didn't respond anything so the $password var was NULL
1 parent 979533a commit 243a798

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎components/console/helpers/dialoghelper.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ You can also ask and validate a hidden response::
159159
if (trim($value) == '') {
160160
throw new \Exception('The password can not be empty');
161161
}
162+
return $value;
162163
};
163164

164165
$password = $dialog->askHiddenResponseAndValidate(

0 commit comments

Comments
 (0)