Skip to content

Commit 6b15ab4

Browse files
committed
Fix redundant type casts
1 parent 8170452 commit 6b15ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/Type/DoctrineType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static function createChoiceLabel(object $choice): string
7575
*/
7676
public static function createChoiceName(object $choice, $key, string $value): string
7777
{
78-
return str_replace('-', '_', (string) $value);
78+
return str_replace('-', '_', $value);
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)