Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I suppress warnings in Eclipse for PHP?

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?

like image 816
Eric G Avatar asked Sep 24 '10 23:09

Eric G


1 Answers

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!

like image 104
keatch Avatar answered Oct 05 '22 09:10

keatch