Skip to content

Commit f697cb6

Browse files
committed
fix enum dart
1 parent b426bbd commit f697cb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SDK/Language/Dart.php

+3
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ public function getFilters(): array
515515
return implode("\n", $value);
516516
}, ['is_safe' => ['html']]),
517517
new TwigFilter('caseEnumKey', function (string $value) {
518+
if (ctype_upper($value)) {
519+
return \strtolower($value);
520+
}
518521
return $this->toCamelCase($value);
519522
}),
520523
];

0 commit comments

Comments
 (0)