You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
4.2.0 attempts to call isInitializable() on my extractor that doesn't implement PropertyInitializableExtractorInterface.
Probable caused by the @dunglas changes in #26997
How to reproduce
I have a custom ReflectionExtractor service that decorates the default one:
class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface
{
}
It used to work before 4.2.0, but I now get an UndefinedMethodException because it doesn't have an isInitializable() method.
Possible Solution
I haven't checked further, but it seems to be a problem with the configuration: my extractor is injected in the $initializableExtractors constructor argument of PropertyInfoExtractor, even though it doesn't implement PropertyInitializableExtractorInterface.