Skip to content

Commit 0575b0a

Browse files
jdecosterweaverryan
authored andcommitted
Update dialoghelper.rst
1 parent 243a798 commit 0575b0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/console/helpers/dialoghelper.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ You can also ask and validate a hidden response::
156156
$dialog = $this->getHelperSet()->get('dialog');
157157

158158
$validator = function ($value) {
159-
if (trim($value) == '') {
159+
if ('' === trim($value)) {
160160
throw new \Exception('The password can not be empty');
161161
}
162+
162163
return $value;
163164
};
164165

0 commit comments

Comments
 (0)