Skip to content

Commit c1812a9

Browse files
committed
Update dialoghelper.rst
1 parent 036d276 commit c1812a9

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)