Ignore only one undefined class
Hello, is it real to ignore only one specific undefined class ? I found where i can disable backlight all undefined classe's. But i need only one, for example class "Test", is it real to do ? Thanks.
Attachment(s):
question.png
Please sign in to leave a comment.
Hi there,
Please describe what you mean by "ignore".
If you do not want it to be higlighted as "undefined" .. then just define it -- create some file inside the project (e.g. PROJECT_ROOT/_misc_/ide_hints.php) and describe it there. This file will be used by IDE only.
Yea, i do not want to higlighted it. Okay, thanks. But mby there is another option, cause it will be not the best decision for me ? Mby i can choose class name for ignore in settings, or somewhere ?
No.
You should be able to suppress warning in any place via special PHPDoc comment in your code (see below),.. but it will affect that place only, so if you have such class in many files/places you will need to repeat it many times.
Okay, big thanks that have explained :)