We try and optimize anyOf checks for types that all have a specific string field that acts like an enum. This optimized check isn't handling if that provided value is given as null here:
|
->addAssignment('$type_name', '($typed[$key] ?? null) as nonnull', HackBuilderValues::literal()) |
.