On D10 we had to port the Early Rendering Module to our own bc it was unmaintained.
Today while testing the new code for Metadata Display Entities i discovered that Symfony5 passes
both Arrays AND also Objects (precompiled?) $controllers. Bc people don't use strict arguments (means this function allows to be called with anything...) our code fails on the revision route (only!)
What?
On D10 we had to port the Early Rendering Module to our own bc it was unmaintained. Today while testing the new code for Metadata Display Entities i discovered that Symfony5 passes both Arrays AND also Objects (precompiled?) $controllers. Bc people don't use strict arguments (means this function allows to be called with anything...) our code fails on the revision route (only!)
The solution is to do here:
https://github.com/esmero/strawberryfield/blob/6e3824cc9ad547692eb134a0764d6ebc4c35b896/src/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php#L25
This instead
What a mess (not my fault)