8000 Apply suggestions from code review · symfony/symfony@0b5b2c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b5b2 8000 c6

Browse files
derrabusyceruto
andauthored
Apply suggestions from code review
Co-authored-by: Yonel Ceruto <yonelceruto@gmail.com>
1 parent 0846cc8 commit 0b5b2c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Form/Extension/Core/Type/EnumType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function configureOptions(OptionsResolver $resolver): void
3939
return null;
4040
}
4141

42-
return static function (?\BackedEnum $choice): ?string {
42+
return static function (?\BackedEnum $choice): string {
4343
if (null === $choice) {
44-
return null;
44+
return '';
4545
}
4646

4747
return (string) $choice->value;

0 commit comments

Comments
 (0)
0