We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8170452 commit 6b15ab4Copy full SHA for 6b15ab4
Form/Type/DoctrineType.php
@@ -75,7 +75,7 @@ public static function createChoiceLabel(object $choice): string
75
*/
76
public static function createChoiceName(object $choice, $key, string $value): string
77
{
78
- return str_replace('-', '_', (string) $value);
+ return str_replace('-', '_', $value);
79
}
80
81
/**
0 commit comments