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
If that method is called more than once with different $context arguments the wrong encoder could be returned because $encoder->supportsEncoding($format, $context) is not called again.
Hence, I disabled the first check and return statement and things worked like a charm.