Problem
Unknown discriminator values currently end in undefined array access and type errors in NodeDiscriminator::getClassNameForDiscriminator() or getFormTypeFromDiscriminator().
Current behavior
If a discriminator is not configured, the component can emit PHP warnings and then fail with a TypeError because null is returned where a string is expected.
Expected behavior
Unknown discriminators should fail with the component's own exceptions, such as MissingClassDiscriminatorException or MissingFormTypeException.
Why it matters
This would make debugging and production failures much clearer, especially in polymorphic collections driven by user input or CMS configuration.