-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include vendor deprecation warnings #124
Comments
Actually the tool doesn't check if there are any deprecations in your twig templates. |
Right, that's the reason I opened the issue, so there could be some discussion about it.
Do you think this type of functionality could be added? I'm thinking beyond templates specifically. Do you think the tool could find and report all deprecation warnings that the symfony profiler would report? That would be the ultimate goal, I think.
Sent from a phone
… On Feb 28, 2017, at 12:24 AM, slde-robin ***@***.***> wrote:
Actually the tool doesn't check if there are any deprecations in your twig templates.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The profiler gathers the warnings by actually executing the code. To add Twig support we would need a twig parser and so on... IMO thats too much. But you could check your compiled Twig templates in the cache dir for deprecations. Right now I don't have the time to test that myself. It would be great if you could test that and give me review |
Awesome, thanks for the very helpful info.
Sent from a phone
… On Mar 1, 2017, at 5:25 AM, slde-robin ***@***.***> wrote:
The profiler gathers the warnings by actually executing the code.
The detector does not execute the code.
To add Twig support we would need a twig parser and so on... IMO thats too much.
But you could check your compiled Twig templates in the cache dir for deprecations. Right now I don't have the time to test that myself.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Firstly, thanks for the awesome tool!
I've run it against my codebase with:
It found lots of helpful things to cleanup. Now when I run it, nothing is found. However, if I go to one of my views, I do see deprecation warnings in the profiler related to my Twig dependency. It's not my issue, but the related deprecation is discussed here: twigphp/Twig#2267
If there is any more info I can provide that would be helpful, please let me know.
The text was updated successfully, but these errors were encountered: