But the issue is that YAML does not allow setting ``on-invalid="null"``: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php#L288