ConfigCache::__toString() is deprecated since version 2.7

222 views Asked by At

After updating to Symfony 2.7 I've got deprecated notification in my profiler. Here it is:

enter image description here

It looks like an internal Symfony stuff. Any ideas about how to fix it or it will be fixed in next Symfony patches?

1

There are 1 answers

2
JayTaph On BEST ANSWER

It seems that the issue is located at the "AllowedMethodsRouterLoader" class. This might be an external bundle, so you might be able to update this bundle. If it's your own class, it's as easy as just changing it to using ->getPath() instead of using the ConfigCache instance as a string.