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
Back in #44356 this issue was reported for factories using the __call magic method.
This behavior was fxed back then in #44710. The same problem is present for the __callStatic logic however.
I ran into this issue, as we have a service definition of a MyCLabs enum, which uses static calls to create instances of the "enums".
I'm aware that the myclabs/enum package has no real use anymore since php 8.1, but due to the scale of the project we have not had the time yet to transition fully to native enums.
And the discrepancy between the two methods feels like it could've been an oversight when implementing said previous fix.