Closed permanovd closed 5 years ago
Same here, whats up with that?
looks like issue is in the dependency nikolaposa/version since the Version class is not serializable
as a temporary fix i've used https://github.com/Nogrod/version/commit/56c9a7b3477d68d25ca58f7e3a0b6f8fa9bef0d5
Native PHP serialization/deserialization of a Version object works. I've just added a test case to cover it: https://github.com/nikolaposa/version/blob/master/tests/VersionTest.php#L139. I believe this is something specific to Symfony Cache or perhaps this TraceableAdapter
that is in use here, because other, such as RedisAdapter
do native serialization before persisting cache values.
It seems that this bug was fixed by a fix in the symfony var-dumper component (https://github.com/symfony/symfony/commit/e354d54e7edf13381056d5002b7807f476a9e8bc#diff-bc7a0b9933d7688a76f788080f091a11).
So no more warning since 4.2.7
closing this issue then
Bundle version:
^3.1
Symfony version:4.2
Version object cannot be exported to file cache.
It happens because
Symfony\Component\VarExporter\Internal\Registry::getClassReflector
throwsNotInstantiableTypeException
if class is not instantiable.Error message:
refs #30