> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 2.10.14

**`(fix):`** Emit the native PHP enum case (instead of its backing string value) when an enum is
passed to a discriminated-union factory argument in dynamic snippets, matching the
generated factory signature.

**`(fix):`** Use the backing value type (`value-of<Enum>`) for enum map keys in PHPDoc so PHPStan can
resolve the type. PHP array keys must be `int|string`, so the native enum type produced an
unresolvable type.