Closed ajdinmore closed 2 years ago
Just to note: this breaks the currently active 4.1.0 release in environments with debug enabled.
I'm having this problem right now. I can't clear the cache while in dev mode
Here is relevant part of my composer.lock
:
...
{
"name": "jms/serializer-bundle",
"version": "4.1.0",
"source": {
"type": "git",
"url": "https://github.com/schmittjoh/JMSSerializerBundle.git",
"reference": "408ad721f9b7b5c1fb9bfff93f54868e946a12fd"
},
...
Symfony 5.4.12
@cizordj In the short-term, you can solve the issue by locking your version to 4.0.*
@ajdinmore Thanks, that's what I ended up doing.
I've also encounter the same problem, as mention above I've locked upgrade till issue is solve - probably it just needs renaming the metadataDriver property type.
Steps required to reproduce the problem
Expected Result
Actual Result
JMS\SerializerBundle\Debug\DataCollector::__construct(): Argument #4 ($metadataDriver) must be of type JMS\SerializerBundle\Debug\TraceableDriver, JMS\SerializerBundle\Debug\TraceableMetadataFactory given, called in /app/var/cache/dev/ContainerP6xo1xa/App_KernelDevDebugContainer.php on line 360