How do I suppress warnings in Eclipse for PHP?

て烟熏妆下的殇ゞ 提交于 2019-12-07 03:27:09

问题


In Eclipse, I'm getting warnings for not having a start tag (<div>) because the start tag is in another file. How do I suppress this warning to keep it out of my "Problems" window?

I know in Java I could do @SuppressWarning, but I don't know how for php. I assume that there is, based on the availability of php type hinting in Eclipse, but maybe it isn't?


回答1:


You may also set this on a per project base. Go to

Project -> Properties -> Validation

and modify your settings as you like. You can suppress a lot of warnings, especially HTML -> Document Type -> Invalid Location!




回答2:


Go to Window > Preferences. Under Web > HTML Files > Validation you'll find "Missing start tag:" and "Missing end tag:"




回答3:


window->preferences->validation->suspend all validators

will also make eclipse way faster :)



来源:https://stackoverflow.com/questions/3791690/how-do-i-suppress-warnings-in-eclipse-for-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!