Skip to content

Commit 94a63f1

Browse files
blizzzcome-nc
authored andcommitted
also apply better strink check in Edit.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
1 parent 406c6f3 commit 94a63f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Command/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function yesOrNoNormalizer(string $input): ?bool {
229229
}
230230

231231
private function stringNormalizer(?string $input): string {
232-
return $input ? trim($input) : '';
232+
return ($input !== null) ? trim($input) : '';
233233
}
234234

235235
private function autoCompleteNormalizer($input, array $autoComplete) {

0 commit comments

Comments
 (0)